:root {
  --theme-color: #66c2ff;
  --desktop-content-width: 1100px;
  --line: rgba(0,0,0,.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: #222; background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; }

.only-desktop { display: none !important; }
@media (min-width: 1024px) {
  .only-desktop { display: block !important; }
  .only-mobile { display: none !important; }
}

.c-theme { color: var(--theme-color); }
.c-666 { color: #666; } .c-888 { color: #888; } .c-999 { color: #999; }
.bold { font-weight: 700; }
.sep { height: 1px; background: var(--line); margin-top: 16px; }
.gap-band { height: 16px; background: #f2f2f2; }
@media (min-width: 1024px) { .gap-band { display: none; } }

/* ---------- 상단 내비 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--theme-color); }
.nav-m { display: flex; align-items: center; height: 55px; padding: 0 12px; }
.nav-m button { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-m button svg { width: 22px; height: 22px; stroke: #fff; }
.nav-m .brand { color: #fff; font-weight: 700; margin-left: 8px; }
.nav-d { display: none; }
@media (min-width: 1024px) {
  .nav { background: #fff; }
  .nav-m { display: none; }
  .nav-d { display: flex; width: min(var(--desktop-content-width), calc(100% - 32px)); margin: 0 auto; padding: 12px 0;
    align-items: center; gap: 40px; border-bottom: 1px solid var(--line); }
  .nav-d .brand { font-size: 20px; font-weight: 700; white-space: nowrap; }
  .nav-d ul { display: flex; gap: 6px; }
  .nav-d ul a { padding: 6px; font-size: 18px; font-weight: 700; color: #666; white-space: nowrap; }
  .nav-d ul a:hover { color: #777; }
  .nav-d ul a.active { color: #000; }
}

/* ---------- 모바일 사이드바 ---------- */
.sidebar-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 60; display: none; }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 85vw; background: #fff; z-index: 61;
  transform: translateX(-100%); overflow-y: auto; }
body.sidebar-open .sidebar { transform: none; }
body.sidebar-open .sidebar-bg { display: block; }
.sidebar-head { background: var(--theme-color); padding: 24px; text-align: center; color: #fff; }
.sidebar-head img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto; object-fit: cover; }
.sidebar-head strong { display: block; margin-top: 8px; font-size: 22px; }
.sidebar ul a { display: flex; align-items: center; height: 48px; padding: 0 16px; border-bottom: 2px solid #eee;
  font-size: 18px; font-weight: 700; color: #888; }
.sidebar ul a.active { color: var(--theme-color); }
.sidebar-foot { padding: 20px; text-align: center; color: #959595; font-size: 14px; }
.sidebar-foot img { width: 70px; height: 70px; margin: 0 auto 12px; }
.sidebar-foot strong { color: #000; }

/* ---------- 하위 메뉴 ---------- */
.subnav { position: sticky; top: 55px; z-index: 10; background: #fff; border-top: 1px solid var(--theme-color);
  border-bottom: 1px solid var(--theme-color); }
.subnav ul { display: flex; height: 55px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; padding: 8px 14px; font-size: 12px; font-weight: 700; color: #666; white-space: nowrap; }
.subnav a.active { color: #000; }
@media (min-width: 1024px) {
  .subnav { top: 61px; border: 0; }
  .subnav ul { width: min(var(--desktop-content-width), calc(100% - 32px)); margin: 0 auto; justify-content: center; border-bottom: 1px solid var(--line); }
  .subnav a { font-size: 14px; }
  .subnav a.active { color: var(--theme-color); }
}

/* ---------- 섹션 공통 ---------- */
.page { padding: 16px; }
.content { width: 100%; margin-top: 16px; }
@media (min-width: 1024px) {
  .page { padding: 16px 0; }
  .content { width: min(var(--desktop-content-width), calc(100% - 32px)); margin: 40px auto 0; }
}
.sh-d { display: none; }
.sh-m { display: flex; }
.sh-m::before { content: ""; width: 6px; background: var(--theme-color); }
.sh-m h2 { font-size: 20px; font-weight: 700; margin-left: 16px; }
@media (min-width: 1024px) {
  .sh-m { display: none; }
  .sh-d { display: block; border-bottom: 1px solid var(--line); }
  .sh-d .row { display: flex; justify-content: space-between; align-items: flex-end; }
  .sh-d h2 { font-size: 24px; font-weight: 700; color: var(--theme-color); padding-bottom: 8px;
    border-bottom: 1px solid var(--theme-color); margin-bottom: -1px; }
  .sh-d a { color: #333; padding-bottom: 8px; }
}

.content h3 { font-size: 18px; font-weight: 700; margin-top: 32px; }
.content h3.title { color: var(--theme-color); }
.content h4 { font-size: 18px; font-weight: 700; margin-top: 28px; }
.content p, .content ul { margin-top: 12px; }
.content li + li { margin-top: 2px; }
.content .sub { margin-top: 8px; }
@media (min-width: 1024px) {
  .content h3, .content h4 { font-size: 20px; margin-top: 56px; }
  .content p, .content ul { margin-top: 20px; }
}
.content > :first-child { margin-top: 0; }

.tbl-wrap { overflow-x: auto; margin-top: 16px; }
.tbl { width: 100%; border: 1px solid #d1d5db; font-size: 14px; }
.tbl th, .tbl td { border: 1px solid #d1d5db; padding: 10px 8px; text-align: center; vertical-align: middle; }
.tbl th { background: #fafafa; color: #666; font-weight: 500; }

/* ---------- 연락 블록 ---------- */
.contact { display: flex; background: var(--theme-color); margin-top: 32px; }
.contact a { flex: 1; display: flex; align-items: center; gap: 16px; padding: 16px; color: #fff; font-weight: 700;
  border-right: 1px solid rgba(0,0,0,.07); }
.contact svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.6; flex-shrink: 0; }
@media (min-width: 1024px) {
  .contact { margin-top: 72px; }
  .contact a { justify-content: center; padding: 32px; font-size: 20px; gap: 32px; }
  .contact svg { width: 33px; height: 33px; }
}

/* ---------- 푸터 ---------- */
.footer-d { display: none; }
.footer-m { padding: 16px; text-align: center; font-size: 14px; color: #959595; }
.footer-m img { width: 70px; height: 70px; margin: 0 auto; }
.footer-m h3 { color: #222; margin-top: 8px; }
@media (min-width: 1024px) {
  .footer-m { display: none; }
  .footer-d { display: block; background: #000; padding: 56px 0; margin-top: 0; }
  .footer-d .in { width: min(var(--desktop-content-width), calc(100% - 32px)); margin: 0 auto; padding: 0 20px; color: #888; font-size: 14px; }
  .footer-d .in div span + span::before { content: "|"; margin: 0 8px; color: #555; }
}

/* ---------- 홈 ---------- */
.bg-img { background-color: #3a4a5c; background-size: cover; background-position: center; }
.d-spot { position: relative; height: 400px; background-image: url("../image/desktop/spot_home_site.jpeg"); }
.d-spot::after, .m-spot::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.d-spot .in { position: relative; z-index: 2; width: min(var(--desktop-content-width), calc(100% - 32px)); height: 100%; margin: 0 auto;
  display: flex; align-items: center; padding: 0 40px; }
.d-spot img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.d-spot .txt { color: #fff; margin-left: 20px; }
.d-spot h1 { font-size: 20px; }
.home-intro { width: min(var(--desktop-content-width), calc(100% - 32px)); margin: 80px auto 0; text-align: center; }
.home-intro h2 { font-size: 14px; font-weight: 400; color: var(--theme-color); }
.home-intro p { font-size: 18px; margin-top: 8px; }
.home-profile { width: min(var(--desktop-content-width), calc(100% - 32px)); margin: 80px auto; }
.home-profile article { display: flex; gap: 32px; margin-top: 32px; }
.zoom { width: min(557px, 50%); height: 353px; overflow: hidden; flex-shrink: 0; }
.zoom div { width: 100%; height: 100%; transition: transform .3s; background-image: url("../image/desktop/profile.jpeg"); }
.zoom:hover div { transform: scale(1.05); }
.home-profile h3 { font-size: 20px; font-weight: 400; }
.home-profile p { margin-top: 16px; font-size: 14px; color: #666; }
.home-grid { width: min(var(--desktop-content-width), calc(100% - 32px)); margin: 40px auto 80px; height: 440px; display: grid;
  grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 8px; }
.home-grid a { position: relative; overflow: hidden; }
.home-grid .bg-img { position: absolute; inset: 0; transition: transform .3s; }
.home-grid a:hover .bg-img { transform: scale(1.05); }
.home-grid span { position: absolute; top: 20px; left: 20px; padding: 12px; background: var(--theme-color); color: #fff;
  font-weight: 700; border-radius: 8px; z-index: 1; }

.m-spot { position: relative; height: 455px; text-align: center; color: #fff;
  background-image: url("../image/mobile/spot_home_site.jpeg"); }
.m-spot .in { position: relative; z-index: 2; padding-top: 80px; }
.m-spot img { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto; object-fit: cover; }
.m-spot h1 { font-size: 20px; font-weight: 400; margin-top: 8px; }
.m-spot h2 { font-size: 16px; font-weight: 400; margin-top: 8px; color: rgba(255,255,255,.6); padding: 0 64px; word-break: keep-all; }
.spot-btns { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.spot-btns a { display: block; width: 60px; font-size: 14px; }
.spot-btns .ic { width: 44px; height: 44px; margin: 0 auto 2px; border-radius: 50%; background: var(--theme-color);
  display: flex; align-items: center; justify-content: center; }
.spot-btns svg { width: 22px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.6; }
.m-sec { padding: 40px 0; }
.m-sec article { margin-top: 32px; padding: 0 64px 0 22px; letter-spacing: -.25px; }
.m-menu { margin-top: 32px; border-bottom: 1px solid rgba(0,0,0,.07); }
.m-menu a { display: flex; align-items: center; height: 60px; padding: 8px 16px; background: var(--theme-color); color: #fff;
  font-size: 18px; border-top: 1px solid rgba(0,0,0,.07); }

/* ---------- 회사소개 ---------- */
.hero-img { width: 100%; height: 140px; object-fit: cover; margin-top: 32px; }
.perf li { padding: 16px 0; }
.perf p { margin-top: 12px; }
.mou { width: 100%; object-fit: cover; margin-top: 16px; }
@media (min-width: 1024px) {
  .hero-img { height: 412px; }
  .perf li { padding: 32px 0; }
  .mou { height: 400px; margin-top: 40px; }
}

/* ---------- PSM 지역 링크 ---------- */
.region { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  color: var(--theme-color); margin-top: 16px; }
.region a { display: flex; align-items: center; gap: 12px; padding: 8px 20px; font-size: 18px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.region a::before { content: "→"; font-size: 14px; border: 1px solid; border-radius: 50%; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 고객센터 ---------- */
.sc { max-width: 1024px; margin: 0 auto; padding: 24px; }
.sc h1 { font-size: 24px; font-weight: 600; color: #0ea5e9; margin-bottom: 16px; }
.map-box { width: 100%; height: 280px; border-radius: 8px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; background: #eef7ff; color: #3b82f6; text-align: center; padding: 16px; }
.map-box svg { width: 40px; height: 40px; stroke: #3b82f6; fill: none; stroke-width: 1.6; }
.sc .addr { color: #2563eb; font-size: 18px; font-weight: 600; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn { padding: 8px 16px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.15); background: #3b82f6; color: #fff; }
.btn.light { background: #dbeafe; color: #2563eb; }
.biz { border-top: 1px solid #e5e7eb; padding-top: 16px; margin-top: 24px; }
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; color: #4b5563; font-size: 14px; margin-top: 8px; }
.float-call { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: #3b82f6;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); z-index: 40; }
.float-call svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; }
