@import url('https://cdn.jsdelivr.net/gh/Freesentation/paperlogy/Paperlogy.css');
@import url('https://cdn.jsdelivr.net/npm/pretendard@latest/dist/web/variable/pretendardvariable.css');

:root {
  --brand-dark: #1C2B3A;
  --brand-primary: #3B6EA0;
  --brand-light: #EBF5FF;
  --text-main: #2D3748;
  --text-muted: #718096;
  --border: #E2E8F0;
  --bg-alt: #F7F9FC;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Paperlogy", "Pretendard Variable", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: #fff;
}

/* ─── Nav ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 2rem; list-style: none; }
.site-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  transition: color .2s;
}
.site-nav a:hover, .site-nav a.active { color: #fff; }
.nav-cta {
  background: var(--brand-primary);
  color: #fff !important;
  padding: .4rem 1rem;
  border-radius: 4px;
  font-weight: 600 !important;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: .3s;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #3a3a3a;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: #fff;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: .88;
  margin-bottom: 2rem;
  max-width: 520px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand-primary);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #2d5a85; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  padding: .85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-left: 1rem;
  transition: border-color .2s;
}
.btn-outline:hover { border-color: #fff; }

/* ─── Sections ─── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--brand-dark);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ─── Quick Links Grid ─── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.quick-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.quick-card-bg {
  position: absolute;
  inset: 0;
  background: var(--brand-dark);
}
.quick-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.quick-card-body {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  color: #fff;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
}
.quick-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.quick-card-body span {
  font-size: .875rem;
  opacity: .8;
}

/* ─── Definition (G-6) ─── */
.def-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.def-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
}
.def-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: .625rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.def-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--brand-light);
  border-radius: 4px;
  flex-shrink: 0;
}
.def-card p { color: var(--text-muted); font-size: .9375rem; }

/* ─── Case Cards ─── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.case-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-3px); }
.case-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-alt);
  display: block;
}
.case-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dbe4ee 0%, #c5d3e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .875rem;
}
.case-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: .75rem;
}
.case-tag {
  font-size: .75rem;
  background: var(--brand-light);
  color: var(--brand-primary);
  padding: .2rem .625rem;
  border-radius: 3px;
  font-weight: 600;
}
.case-link {
  margin-top: auto;
  font-size: .875rem;
  color: var(--brand-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* ─── Process ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--border);
  position: relative;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.process-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: .5rem;
}
.process-step p { color: var(--text-muted); font-size: .9375rem; }

/* ─── FAQ ─── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  gap: 1rem;
}
.faq-q-icon { flex-shrink: 0; transition: transform .25s; font-size: 1.25rem; color: var(--brand-primary); }
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ─── CTA ─── */
.cta-section {
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-section p { opacity: .8; margin-bottom: 2rem; font-size: 1.0625rem; }

/* ─── Footer ─── */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  padding: 3rem 1.5rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: #fff; font-size: 1.125rem; font-weight: 800; text-decoration: none; display: block; margin-bottom: .75rem; }
.footer-brand p { line-height: 1.8; }
.footer-nav h4 { color: #fff; font-size: .9375rem; font-weight: 700; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-contact h4 { color: #fff; font-size: .9375rem; font-weight: 700; margin-bottom: 1rem; }
.footer-contact p { margin-bottom: .375rem; line-height: 1.7; }
.footer-contact a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ─── Floating ─── */
.floating-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s;
}
.floating-btn:hover { transform: scale(1.08); }
.floating-phone { background: var(--brand-primary); color: #fff; }
.floating-sms { background: #fff; color: var(--brand-dark); border: 2px solid var(--border); }

/* ─── Breadcrumb ─── */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: .625rem 1.5rem;
}
.breadcrumb ol {
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--text-muted);
}
.breadcrumb li + li::before { content: "›"; }
.breadcrumb a { color: var(--brand-primary); text-decoration: none; }

/* ─── Inner page content ─── */
.page-hero {
  background: var(--brand-dark);
  color: #fff;
  padding: 3.5rem 1.5rem;
}
.page-hero .container { max-width: 1200px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: .75rem;
}
.page-hero p { opacity: .85; max-width: 560px; }

.content-section { padding: 3rem 1.5rem; }
.content-body { max-width: 800px; margin: 0 auto; }
.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 2rem 0 .75rem;
}
.content-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 1.5rem 0 .5rem;
}
.content-body p { margin-bottom: 1rem; color: var(--text-main); }
.content-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-body ul li { margin-bottom: .375rem; color: var(--text-main); }
.nseo-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}
.nseo-photos figure { margin: 0; }
.nseo-photos img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.nseo-photos figcaption {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-top: .4rem;
  text-align: center;
}
@media (max-width: 540px) {
  .nseo-photos { grid-template-columns: 1fr; }
}

/* ─── Blog Template ─── */
.blog-body { max-width: 820px; margin: 0 auto; }
.blog-quote {
  border-left: 4px solid var(--brand-primary);
  background: var(--brand-light);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}
.blog-quote p { font-size: 1.0625rem; font-style: italic; color: var(--brand-dark); margin: 0 0 .4rem; }
.blog-quote cite { font-size: .875rem; color: var(--text-muted); font-style: normal; }
.blog-figure { margin: 2rem 0; }
.blog-figure img { width: 100%; height: auto; border-radius: 6px; display: block; }
.blog-figure figcaption { font-size: .8125rem; color: var(--text-muted); margin-top: .4rem; text-align: center; }
.blog-related-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}
.blog-related-label { font-size: .8125rem; color: var(--text-muted); margin-bottom: .5rem; }
.blog-related-link {
  display: inline-block;
  margin-right: 1rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}
.blog-related-link:hover { text-decoration: underline; }

.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.compare-table th, .compare-table td {
  padding: .875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .9375rem;
}
.compare-table th { background: var(--bg-alt); font-weight: 700; color: var(--brand-dark); }
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: .625rem 0;
  padding-left: 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: .9375rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .9rem;
  width: 14px;
  height: 14px;
  border: 2px solid var(--brand-primary);
  border-radius: 2px;
}
.checklist li.checked::before {
  background: var(--brand-primary);
}
.checklist li.checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ─── Consultation page ─── */
.consult-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.consult-step {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.consult-step-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: .5rem;
}
.consult-step h3 { font-size: 1rem; font-weight: 700; color: var(--brand-dark); margin-bottom: .5rem; }
.consult-step p { font-size: .9rem; color: var(--text-muted); }
.cta-btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-sms {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand-primary);
  color: #fff;
  padding: 1rem 2.25rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background .2s;
}
.btn-sms:hover { background: #2d5a85; }
.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand-dark);
  color: #fff;
  padding: 1rem 2.25rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background .2s;
}
.btn-tel:hover { background: #2d3f52; }

/* ─── Sitemap page ─── */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.sitemap-cat h3 { font-size: 1rem; font-weight: 700; color: var(--brand-dark); border-bottom: 2px solid var(--brand-primary); padding-bottom: .5rem; margin-bottom: 1rem; }
.sitemap-cat ul { list-style: none; }
.sitemap-cat li { padding: .375rem 0; border-bottom: 1px solid var(--border); }
.sitemap-cat a { color: var(--text-main); text-decoration: none; font-size: .9375rem; }
.sitemap-cat a:hover { color: var(--brand-primary); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: span 2; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: block; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--brand-dark);
    padding: 1rem 1.5rem;
    gap: 0;
  }
  .site-nav.open li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav.open a { display: block; padding: .875rem 0; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .def-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .consult-steps { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
@media (max-width: 480px) {
  .quick-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .btn-outline { margin-left: 0; margin-top: .75rem; }
  .hero-content .btn-group { flex-direction: column; display: flex; gap: .75rem; }
}

.related-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.related-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.related-card img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; display: block; }
.related-card-title { display: block; padding: .75rem .9rem .25rem; font-weight: 600; line-height: 1.4; }
.related-card-more { display: block; padding: 0 .9rem .85rem; font-size: .8125rem; color: var(--brand-primary); }
.blog-related { margin: 2.5rem 0 0; }
