@font-face {
  font-family: "Paperlogy";
  src: local("Paperlogy");
  font-display: swap;
}

:root {
  --bg: #F6F1E9;
  --bg-card: #FFFFFF;
  --ink: #24211C;
  --ink-soft: #6B6357;
  --brand: #2F4F3A;
  --brand-dark: #1F3527;
  --accent: #C97B4A;
  --line: #E7DFD0;
  --radius: 12px;
  --max: 1560px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Paperlogy", "Pretendard Variable", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.notice-bar {
  background: var(--brand-dark);
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 12px;
}
.notice-bar a { text-decoration: underline; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--brand-dark); }
.gnb { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.gnb a { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.gnb a:hover, .gnb a.active { color: var(--brand); }
.header-cta {
  display: flex; align-items: center; gap: 10px;
  background: var(--brand-dark); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; white-space: nowrap;
}
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .gnb { display: none; }
  .header-cta span.cta-label { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(20,20,15,0.15), rgba(20,20,15,0.62)), var(--hero-img) center/cover no-repeat;
  color: #fff;
}
.hero-inner { padding: 64px 0; max-width: 720px; }
.hero-eyebrow { font-size: 0.95rem; opacity: 0.9; margin-bottom: 12px; font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.25; margin: 0 0 20px; font-weight: 800; }
.hero-lead { font-size: 1.05rem; opacity: 0.96; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-dark { background: var(--brand-dark); color: #fff; }

/* ── Section shell ── */
section.sec { padding: 72px 0; }
section.sec.alt { background: #fff; }
.sec-eyebrow { text-align: center; color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.sec-title { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; margin: 0 0 40px; }
.sec-lead { max-width: 760px; margin: -20px auto 40px; text-align: center; color: var(--ink-soft); }

/* ── Price table (모바일: 가로 스크롤) ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,0.05); }
.price-table { width: 100%; min-width: 480px; border-collapse: collapse; background: #fff; }
.price-table th, .price-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.95rem; }
.price-table th { background: var(--brand-dark); color: #fff; font-weight: 700; }
.price-table td.price { font-weight: 800; color: var(--brand); white-space: nowrap; }
.price-note { margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .price-table th, .price-table td { padding: 11px 12px; font-size: 0.85rem; }
  .price-table { min-width: 420px; }
}

/* ── 포트폴리오 가로 스크롤 카드 행 (참고 사이트 IA) ── */
.case-scroll { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.case-scroll::-webkit-scrollbar { height: 8px; }
.case-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.case-scroll .case-card { flex: 0 0 260px; scroll-snap-align: start; }
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,0.05); transition: transform .15s; }
.case-card:hover { transform: translateY(-4px); }
.case-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.case-card-body { padding: 16px 18px 20px; }
.case-card-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--brand); background: #EAF1EC; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.case-card-title { font-weight: 700; font-size: 1.02rem; margin: 0 0 6px; }
.case-card-meta { font-size: 0.85rem; color: var(--ink-soft); }

/* ── 대각선 컬러 배너 (참고 사이트 IA) ── */
.diagonal-banner { position: relative; background: var(--brand); color: #fff; padding: 56px 0; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.diagonal-banner.alt2 { background: var(--accent); clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
.diagonal-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.diagonal-banner .db-text { max-width: 520px; }
.diagonal-banner .db-eyebrow { font-size: 0.85rem; opacity: 0.85; margin-bottom: 8px; }
.diagonal-banner h2 { font-size: 1.7rem; margin: 0 0 18px; font-weight: 800; }
.diagonal-banner img { width: 180px; height: 180px; object-fit: cover; aspect-ratio: 1/1; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

/* ── 탭 + 대표 사례 상세 패널 (참고 사이트 IA) ── */
.showcase-panel { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.06); display: grid; grid-template-columns: 1.1fr 1fr; }
.showcase-panel img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.showcase-info { padding: 32px; display: flex; flex-direction: column; }
.showcase-info .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.showcase-info h3 { font-size: 1.35rem; margin: 0 0 18px; }
.showcase-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.showcase-meta dt { font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 3px; }
.showcase-meta dd { margin: 0; font-weight: 700; font-size: 0.92rem; }
.showcase-quote { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; border-left: 3px solid var(--brand); padding-left: 12px; margin: 0 0 20px; }
.showcase-nav { display: flex; gap: 10px; margin-top: auto; }
.showcase-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; }
.showcase-nav a.btn { margin-left: auto; }
@media (max-width: 820px) { .showcase-panel { grid-template-columns: 1fr; } .showcase-panel img { min-height: 220px; } }

/* ── 함께한 기관 텍스트 클라우드 ── */
.client-cloud { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; }
.client-cloud span { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); padding: 8px 16px; background: #fff; border-radius: 999px; border: 1px solid var(--line); }

/* ── 메뉴 카테고리 아이콘 행 ── */
.menu-cat-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.menu-cat-row button { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-cat-row .circle { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.menu-cat-row button.active .circle { border-color: var(--brand); background: var(--brand); color: #fff; }
.menu-cat-row button span.label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.menu-cat-row button.active span.label { color: var(--brand); }

/* ── Tab showcase ── */
.tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.tab-btn.active { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tab-gallery img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }
@media (max-width: 760px) { .tab-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ── List cards (이용안내/프로세스/체크리스트) ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 14px rgba(0,0,0,0.05); }
.info-card h3 { margin-top: 0; font-size: 1.1rem; }
.info-card ul { margin: 0; padding-left: 1.2em; }
.info-card li { margin-bottom: 8px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }

.process-steps { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.process-step { flex: 1 1 180px; background: #fff; border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: 0 2px 14px rgba(0,0,0,0.05); }
.process-step .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; font-size: 1.02rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; font-size: 0.95rem; color: var(--ink-soft); }
.faq-a p { margin: 0 4px 20px; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; }

/* ── Footer ── */
.site-footer { background: var(--brand-dark); color: #E8E4DA; padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-biz { font-size: 0.86rem; line-height: 1.9; opacity: 0.85; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; opacity: 0.9; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.78rem; opacity: 0.6; }

/* ── Floating CTA ── */
.floating-cta { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.floating-cta a { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.25); font-size: 1.3rem; }

/* ── Case detail page ── */
.case-detail-hero img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--radius); }
.case-meta-bar { display: flex; gap: 28px; flex-wrap: wrap; margin: 24px 0 40px; padding: 20px 24px; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,0.05); }
.case-meta-bar dt { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 4px; }
.case-meta-bar dd { margin: 0; font-weight: 700; }
.story-block { max-width: 780px; margin: 0 auto; }
.story-text { font-size: 1.02rem; margin: 28px 0; }
.story-photo { margin: 28px 0; }
.story-photo img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }
.story-photo figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.story-summary { background: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 40px auto; max-width: 780px; }
.story-quote { max-width: 780px; margin: 32px auto; padding: 24px 28px; border-left: 4px solid var(--brand); background: #fff; font-style: italic; }
.story-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.85rem; color: var(--ink-soft); }
.related-links { max-width: 780px; margin: 0 auto 60px; display: flex; gap: 14px; flex-wrap: wrap; }
.related-links a { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 0.88rem; }

/* breadcrumb */
.breadcrumb { font-size: 0.82rem; color: var(--ink-soft); padding: 18px 0; }
.breadcrumb a { color: var(--brand); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: "\2713"; color: var(--brand); font-weight: 800; }

.last-modified { text-align: center; color: var(--ink-soft); font-size: 0.82rem; margin-top: -20px; }
