/* 감자바우집박사 — 구조·타이포 참고: snail.koreazipsuri.com (컬러는 새로 선정) */
:root{--ink:#26302b;--dark:#2e3832;--accent:#9a6b3b;--accent-d:#7a5330;--sage:#6f8576;--bg:#fff;--bg-off:#f6f2ec;--border:#e6dfd4;--gray:#5d6660;--light:#8b928d}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Noto Sans KR',ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:var(--ink);background:var(--bg);line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
.section{padding:80px 40px}
.section-inner{max-width:1440px;margin:0 auto}
.section-eyebrow{font-size:12px;font-weight:500;letter-spacing:3px;text-transform:uppercase;color:var(--accent);margin-bottom:12px}
.section-title{font-size:32px;font-weight:800;letter-spacing:-1px;line-height:1.3;margin-bottom:16px}
.section-desc{font-size:15px;color:var(--gray);line-height:1.7;max-width:720px}
.center{text-align:center}.center .section-desc{margin:0 auto}

/* header */
.site-header{background:var(--bg);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:1000}
.header-inner{max-width:1440px;margin:0 auto;padding:0 40px;height:68px;display:flex;align-items:center;gap:32px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.5px;font-size:18px}
.brand-mark{width:34px;height:34px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;font-size:18px}
.header-nav{display:flex;gap:28px;margin-left:auto;font-size:14px;font-weight:500;color:var(--gray)}
.header-nav a:hover{color:var(--ink)}
.btn-contact{padding:8px 24px;background:var(--ink);color:#fff;font-size:13px;font-weight:600;border-radius:2px;transition:opacity .2s}
.btn-contact:hover{opacity:.8}

/* portfolio (compare cards) */
.portfolio-section{background:var(--bg)}
.portfolio-head{max-width:980px;margin:0 auto 36px}
.portfolio-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;max-width:980px;margin:0 auto 44px}
.portfolio-card{position:relative;display:block;background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px 14px 18px;box-shadow:0 2px 12px rgba(38,48,43,.06);transition:transform .3s,box-shadow .3s}
.portfolio-card:hover{transform:translateY(-4px);box-shadow:0 10px 26px rgba(38,48,43,.13)}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:2px;overflow:hidden;background:var(--border);border-radius:8px}
.compare figure{position:relative;aspect-ratio:3/4;overflow:hidden}
.compare img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.portfolio-card:hover .compare img{transform:scale(1.05)}
.compare figcaption{position:absolute;left:6px;top:6px;background:rgba(38,48,43,.78);color:#fff;font-size:11px;font-weight:600;padding:2px 8px;letter-spacing:1px}
.portfolio-card h3{font-size:17px;font-weight:700;line-height:1.4;margin:16px 4px 6px}
.portfolio-meta{font-size:13px;color:var(--gray);line-height:1.6;margin:0 4px}
.portfolio-card.is-hidden{display:none}
.more-wrap{text-align:center}
.btn-more{padding:12px 40px;border:1px solid var(--ink);background:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;border-radius:2px}
.btn-more:hover{background:var(--ink);color:#fff}

/* hero */
.hero{position:relative;height:520px;overflow:hidden;display:flex;align-items:center;background:var(--dark)}
.hero-bg{position:absolute;inset:0}
.hero-bg img{width:100%;height:100%;object-fit:cover}
.hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(30,38,34,.86) 0%,rgba(30,38,34,.5) 60%,rgba(30,38,34,.25) 100%);z-index:1}
.hero-content{max-width:1440px;margin:0 auto;padding:0 40px;width:100%;position:relative;z-index:2;color:#fff}
.hero-eyebrow{font-size:12px;font-weight:500;letter-spacing:3px;text-transform:uppercase;color:#e1c9a6;margin-bottom:20px}
.hero-title{font-size:48px;font-weight:800;line-height:1.2;letter-spacing:-2px;margin-bottom:16px;max-width:700px}
.hero-answer{font-size:16px;font-weight:300;line-height:1.8;max-width:560px;margin-bottom:32px;color:#eee8df}
.hero-buttons{display:flex;gap:12px;flex-wrap:wrap}
.hero-cta{display:inline-flex;align-items:center;gap:10px;padding:14px 36px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;transition:all .3s}
.hero-cta:hover{background:#efe5d6;transform:translateY(-1px)}
.hero-cta-secondary{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.6)}
.hero-cta-secondary:hover{background:rgba(255,255,255,.14)}

/* services */
.services-section{background:var(--bg-off)}
.services-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;margin-top:40px}
.service-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(38,48,43,.07);transition:transform .3s,box-shadow .3s;display:flex;flex-direction:column}
.service-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(38,48,43,.12)}
.service-image{aspect-ratio:4/3;overflow:hidden}
.service-image img{width:100%;height:100%;object-fit:cover}
.service-body{padding:20px;display:flex;flex-direction:column;flex:1}
.service-card h3{font-size:15px;font-weight:700;letter-spacing:-.3px;margin-bottom:10px}
.service-card p{font-size:13px;color:var(--gray);line-height:1.7;margin-bottom:16px;flex:1}
.service-detail-btn{align-self:flex-start;padding:8px 20px;font-size:12px;font-weight:600;color:var(--gray);border:1px solid var(--border);border-radius:20px;transition:all .2s}
.service-card:hover .service-detail-btn{background:var(--dark);color:#fff;border-color:var(--dark)}

/* process */
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:40px}
.process-step{text-align:center;padding:32px 20px;position:relative}
.process-number{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;background:var(--ink);color:#fff;font-size:18px;font-weight:800;border-radius:50%;margin-bottom:20px}
.process-step h3{font-size:16px;font-weight:700;margin-bottom:10px}
.process-step p{font-size:13px;color:var(--gray);line-height:1.6}
.process-step:not(:last-child)::after{content:'';position:absolute;right:-14px;top:55px;width:8px;height:8px;border-top:2px solid var(--border);border-right:2px solid var(--border);transform:rotate(45deg)}

/* areas */
.areas-section{background:var(--bg)}
.area-group{margin-top:28px}
.area-group h3{font-size:14px;font-weight:700;color:var(--accent-d);margin-bottom:10px;letter-spacing:.5px}
.area-tags{display:flex;flex-wrap:wrap;gap:8px}
.area-tags li{padding:6px 16px;border:1px solid var(--border);border-radius:20px;font-size:13px;color:var(--gray);background:#fff}

/* feature strip */
.feature-strip{background:var(--dark);color:#fff}
.feature-strip-inner{max-width:1440px;margin:0 auto;padding:60px 40px;display:grid;grid-template-columns:repeat(4,1fr);gap:40px}
.feature-strip strong{display:block;font-size:30px;font-weight:800;letter-spacing:-1px;color:#e1c9a6;margin-bottom:6px}
.feature-strip h3{font-size:15px;font-weight:700;margin-bottom:6px}
.feature-strip p{font-size:13px;color:#cfd6d1;line-height:1.7}

/* about / definition */
.about-section{background:var(--bg-off)}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start;margin-top:8px}
.about-body p{font-size:15px;color:var(--gray);line-height:1.9;margin-bottom:16px}
.about-body p strong{color:var(--ink)}
.def-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.def-card{background:#fff;border:1px solid var(--border);padding:20px;border-radius:12px}
.def-card h3{font-size:15px;font-weight:700;margin-bottom:6px}
.def-card p{font-size:13px;color:var(--gray);line-height:1.7}

/* faq */
.faq-section{background:var(--bg)}
.faq-list{max-width:800px;margin-top:24px}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item summary{padding:20px 0;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary h3{font-size:16px;font-weight:600;line-height:1.5}
.faq-item summary::after{content:'+';font-size:22px;font-weight:300;color:var(--light);transition:transform .3s;flex:none}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-answer{padding:0 0 20px;font-size:14px;color:var(--gray);line-height:1.8}

/* cta */
.cta-section{background:var(--ink);color:#fff;text-align:center}
.cta-section h2{font-size:28px;font-weight:800;letter-spacing:-1px;margin-bottom:12px}
.cta-section p{font-size:15px;color:#d8ded9;max-width:560px;margin:0 auto 28px}

/* sub pages */
.page{max-width:900px;margin:0 auto;padding:48px 20px 80px}
.breadcrumb{font-size:12px;color:var(--light);margin-bottom:20px}
.breadcrumb a:hover{text-decoration:underline}
.page h1{font-size:34px;font-weight:800;letter-spacing:-1px;line-height:1.3;margin-bottom:16px}
.answer-box{font-size:16px;line-height:1.9;background:var(--bg-off);border-left:4px solid var(--accent);padding:18px 20px;margin-bottom:28px}
.page h2{font-size:24px;font-weight:800;letter-spacing:-.5px;margin:48px 0 14px;line-height:1.4}
.page h3.sub{font-size:17px;font-weight:700;margin:24px 0 8px}
.page p{font-size:15px;color:#3d4640;line-height:1.95;margin-bottom:16px}
.page ul.bul{margin:0 0 16px 4px}
.page ul.bul li{position:relative;padding-left:18px;font-size:15px;color:#3d4640;line-height:1.9;margin-bottom:6px}
.page ul.bul li::before{content:'';position:absolute;left:0;top:13px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.table-wrap{overflow-x:auto;margin:16px 0 24px;-webkit-overflow-scrolling:touch}
.table-wrap table{width:100%;border-collapse:collapse;font-size:14px;min-width:520px}
.table-wrap th,.table-wrap td{border:1px solid var(--border);padding:12px 14px;text-align:left;vertical-align:top;line-height:1.7}
.table-wrap th{background:var(--bg-off);font-weight:700;white-space:nowrap}
.story-photo{margin:24px 0}
.story-photo img{width:100%;max-width:560px;margin:0 auto;border:1px solid var(--border)}
.story-photo figcaption{font-size:13px;color:var(--light);text-align:center;margin-top:8px}
.quote{border-left:4px solid var(--accent);padding:6px 0 6px 18px;margin:24px 0;font-size:16px;line-height:1.9}
.quote cite{display:block;font-size:13px;color:var(--light);font-style:normal;margin-top:6px}
.updated{font-size:13px;color:var(--light);margin-top:40px}
.nseo-photo{margin:24px 0}.nseo-photo img{width:100%;max-width:560px;margin:0 auto;border:1px solid var(--border)}
.nseo-photo figcaption{font-size:13px;color:var(--light);text-align:center;margin-top:8px}
.case-link-box{margin:28px 0;padding:18px 20px;border:1px solid var(--border);border-radius:12px;background:var(--bg-off)}
.case-link-box a{font-weight:700;color:var(--accent-d);text-decoration:underline}

/* related */
.related{margin-top:56px}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:16px}
.related-card{display:block;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(38,48,43,.07);transition:transform .3s}
.related-card:hover{transform:translateY(-4px)}
.related-img{aspect-ratio:4/3;overflow:hidden}.related-img img{width:100%;height:100%;object-fit:cover}
.related-body{padding:16px}.related-body h3{font-size:15px;font-weight:700;margin-bottom:6px}.related-body p{font-size:13px;color:var(--gray);line-height:1.6;margin:0}

/* gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:28px}
.gallery-grid figure img{width:100%;aspect-ratio:3/4;object-fit:cover;border:1px solid var(--border)}
.gallery-grid figcaption{font-size:13px;font-weight:500;color:var(--gray);margin-top:8px;line-height:1.5}

/* consultation */
.steps{counter-reset:s;margin:12px 0 24px}
.steps li{counter-increment:s;position:relative;padding:14px 16px 14px 56px;border:1px solid var(--border);margin-bottom:10px;font-size:15px;border-radius:8px}
.steps li::before{content:counter(s);position:absolute;left:14px;top:12px;width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;text-align:center;line-height:28px;font-weight:700;font-size:14px}
.cta-pair{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}
.btn-big{display:inline-flex;align-items:center;justify-content:center;padding:16px 36px;font-size:15px;font-weight:700;border-radius:4px;min-width:220px}
.btn-sms{background:var(--accent);color:#fff}.btn-tel{background:var(--ink);color:#fff}

/* footer */
.site-footer{background:var(--dark);color:#bcc6bf;padding:60px 40px 40px}
.footer-inner{max-width:1440px;margin:0 auto}
.footer-brand{font-size:18px;font-weight:800;color:#fff;margin-bottom:16px}.footer-brand span{font-size:13px;font-weight:400;color:#a8b3ac;margin-left:8px}
.footer-links{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:13px;margin-bottom:20px}
.footer-links a:hover{color:#fff}
.footer-biz{font-style:normal;font-size:13px;line-height:1.9}
.footer-copy{font-size:12px;margin-top:16px;color:#8b968f}
.floating-cta{position:fixed;right:20px;bottom:20px;z-index:900;background:var(--accent);color:#fff;padding:14px 22px;border-radius:40px;font-size:14px;font-weight:700;box-shadow:0 6px 18px rgba(0,0,0,.25)}

@media(max-width:1024px){.services-grid{grid-template-columns:repeat(3,1fr)}.feature-strip-inner{grid-template-columns:repeat(2,1fr)}.about-grid{grid-template-columns:1fr}.gallery-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){.section{padding:56px 20px}.header-inner{padding:0 20px;gap:12px}.header-nav{display:none}.btn-contact{margin-left:auto}.services-grid{grid-template-columns:repeat(2,1fr)}.process-grid{grid-template-columns:1fr 1fr}.process-step::after{display:none}.hero{height:420px}.hero-content{padding:0 20px}.hero-title{font-size:30px;letter-spacing:-1px}.hero-answer{font-size:14px}.hero-buttons{flex-direction:column}.hero-cta{justify-content:center}.section-title{font-size:24px}.related-grid{grid-template-columns:1fr 1fr}.page h1{font-size:26px}.gallery-grid{grid-template-columns:repeat(2,1fr)}.site-footer{padding:40px 20px 30px}.feature-strip-inner{padding:40px 20px;gap:30px}}
@media(max-width:560px){.portfolio-grid{grid-template-columns:1fr;gap:20px}}
@media(max-width:480px){.services-grid{grid-template-columns:1fr}.process-grid{grid-template-columns:1fr}.hero{height:380px}.hero-title{font-size:24px}.related-grid{grid-template-columns:1fr}.def-cards{grid-template-columns:1fr}.btn-big{width:100%}}

/* 표: 좁은 화면에서는 행을 카드형으로 재배치 (라벨: 값) */
@media(max-width:640px){
  .table-wrap table{min-width:0}
  .table-wrap table.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .table-wrap table.stack,.table-wrap table.stack tbody,.table-wrap table.stack tr,.table-wrap table.stack td{display:block;width:100%}
  .table-wrap table.stack tr{border:1px solid var(--border);margin-bottom:12px;border-radius:8px;overflow:hidden;background:#fff}
  .table-wrap table.stack td{border:0;border-bottom:1px solid var(--border);padding:10px 14px}
  .table-wrap table.stack td:last-child{border-bottom:0}
  .table-wrap table.stack td::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:var(--accent-d);margin-bottom:2px}
  .table-wrap th{white-space:normal}
}

/* 섹션 구분: 배경 교차 + 경계선 + 제목 장식 */
.section{border-top:1px solid var(--border)}
.portfolio-section,.process-section+.areas-section{background:var(--bg)}
.process-section{background:var(--bg)}
.areas-section{background:var(--bg-off)}
.hero,.feature-strip,.cta-section{border-top:0}
.section-title::after{content:'';display:block;width:44px;height:3px;background:var(--accent);margin-top:14px;border-radius:2px}
.center .section-title::after{margin-left:auto;margin-right:auto}
.cta-section .section-title::after,.cta-section h2::after{background:#e1c9a6}
.section-eyebrow{display:flex;align-items:center;gap:10px}
.section-eyebrow::before{content:'';width:22px;height:1px;background:var(--accent)}
.center .section-eyebrow{justify-content:center}
.faq-item summary h3{font-size:16px}
.area-group{padding-top:20px;border-top:1px dashed var(--border)}
.area-group:first-of-type{border-top:0}
/* 본문 소제목 위계: H1 > H2(구분선+강조선) > H3 */
.page h1{padding-bottom:18px;border-bottom:2px solid var(--ink);margin-bottom:24px}
.page h2{position:relative;padding-top:30px;border-top:1px solid var(--border);margin-top:56px}
.page h2::before{content:'';position:absolute;left:0;top:-1px;width:56px;height:3px;background:var(--accent)}
.page h3.sub{padding-left:12px;border-left:3px solid var(--accent)}
.page .answer-box+section h2:first-child,.page .answer-box+h2{margin-top:36px}
.page section{margin-bottom:8px}
.related{padding-top:8px}
.related .section-title{font-size:22px}
