@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css');

:root {
  --primary: #1D4E64;
  --accent: #EDA33D;
  --bg-alt: #EEF3F5;
  --text: #202A2E;
  --border: #D6E0E4;
}

* { box-sizing: border-box; }
body {
  margin: 0; padding-bottom: 56px;
  font-family: 'Pretendard', sans-serif;
  color: var(--text); font-size: 16px; line-height: 1.7; background: #fff;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--primary); line-height: 1.35; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header: 격자 배경 기술형 */
.site-header { padding: 14px 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 22px 22px; background-color: #fff; border-bottom: 2px solid var(--primary); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { color: var(--primary); font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.main-nav ul { list-style: none; display: none; gap: 20px; margin: 0; padding: 0; }
.main-nav a { color: #52646c; text-decoration: none; font-size: 0.9rem; }
@media (min-width: 860px) { .main-nav ul { display: flex; } }
.header-cta {
  background: var(--primary); color: #fff; padding: 7px 14px; border-radius: 2px;
  font-weight: 700; font-size: 0.83rem; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center;
}

/* hero: 도면풍 격자 배경 */
.hero { padding: 46px 0; background-image: linear-gradient(var(--bg-alt) 1px, transparent 1px), linear-gradient(90deg, var(--bg-alt) 1px, transparent 1px); background-size: 28px 28px; }
.hero h1 { font-size: 1.65rem; margin: 0 0 12px; }
.hero p.lead { color: #52646c; max-width: 560px; margin: 0 0 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; font-weight: 700; font-size: 0.94rem;
  text-decoration: none; cursor: pointer; border-radius: 2px; border: none;
}
.btn-square { background: var(--accent); color: #2b1c00; }

.page-body { padding: 40px 0 44px; }
.intro-summary { background: var(--bg-alt); padding: 16px 18px; border-radius: 4px; font-size: 0.98rem; margin-bottom: 20px; }

/* section divider: 번호 배지형 */
section { padding: 24px 0; position: relative; }
section h2 { display: flex; align-items: center; gap: 10px; }
section:nth-of-type(1) h2::before { content: '01'; }
section:nth-of-type(2) h2::before { content: '02'; }
section:nth-of-type(3) h2::before { content: '03'; }
section:nth-of-type(4) h2::before { content: '04'; }
section h2::before {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--primary); color: #fff;
  border-radius: 50%; font-size: 0.78rem; font-weight: 800; flex: none;
}
section:not(:first-of-type) { border-top: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0; }
caption { text-align: left; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
th { background: var(--primary); color: #fff; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
.table-scroll { overflow-x: auto; }

.checklist { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; background: var(--bg-alt); border-radius: 4px; padding: 10px 12px; font-size: 0.93rem; }
.checklist svg { flex: none; width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }

.gallery { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { border-radius: 4px; }
.gallery figcaption { font-size: 0.8rem; color: #5c6d70; margin-top: 6px; }

.notice { background: #fef3e2; border: 1px solid #f0d2a0; border-radius: 4px; padding: 16px 18px; }
.notice h3 { margin-top: 0; color: #a3691c; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; min-height: 44px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0 0 14px; color: #52646c; }

.related-links { display: grid; gap: 10px; }
.related-links a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px; text-decoration: none; font-weight: 700; color: var(--primary); }
.related-links span { display: block; font-weight: 400; font-size: 0.84rem; color: #5c6d70; margin-top: 3px; }

/* CTA: 메모지형 */
.cta-note { background: var(--accent); color: #2b1c00; border-radius: 4px; padding: 22px 24px; margin: 24px 0; transform: rotate(-0.4deg); }
.cta-note p { font-weight: 700; font-size: 1.02rem; margin: 0 0 16px; }
.cta-note .btn-square { background: #2b1c00; color: #fff; }

/* footer: 미니멀 한줄형 */
.site-footer { border-top: 2px solid var(--primary); padding: 30px 0 100px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 16px; padding: 0; }
.footer-links a { color: #52646c; text-decoration: none; font-size: 0.87rem; }
address { font-style: normal; font-size: 0.84rem; line-height: 1.9; color: #6c7d80; }
address a { color: #6c7d80; }
.copyright { font-size: 0.78rem; color: #94a1a3; margin-top: 8px; }

.mobile-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,0.12); }
.mobile-cta-bar a { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; }
.mobile-cta-bar .call { background: var(--primary); color: #fff; }
.mobile-cta-bar .top { background: var(--accent); color: #2b1c00; }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
