/* built-in.css — 사무실이전철거 붙박이장 전용 스타일 (Hue 30 / Neutral) */

:root{
  --h: 30;
  --bg: hsl(0 0% 97%);
  --surface: hsl(var(--h) 22% 99%);
  --ink: hsl(var(--h) 28% 14%);
  --muted: hsl(var(--h) 10% 40%);
  --accent: hsl(var(--h) 62% 34%);
  --accent-ink: hsl(0 0% 100%);
  --line: hsl(var(--h) 16% 82%);
  --radius: 4px;
  --radius-lg: 10px;
  --font-head: 'Nanum Myeongjo', 'Noto Serif KR', 'Batang', serif;
  --font-body: 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  font-size: 16px;
  word-break: keep-all;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }
h1,h2,h3{ font-family: var(--font-head); line-height: 1.4; margin: 0 0 .7em; color: var(--ink); }
p{ margin: 0 0 1em; }
.wrap{ max-width: 980px; margin: 0 auto; padding: 0 22px; }

:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}

/* ---------- 헤더: 박스형 헤더 ---------- */
.hdr{ padding: 18px 16px 0; }
.hdr__box{
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 0 var(--line);
}
.hdr__logo{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hdr__nav{ display: flex; gap: 18px; }
.hdr__nav a{
  text-decoration: none;
  font-size: .92rem;
  color: var(--muted);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.hdr__nav a:hover{ color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 히어로: 프레임 박스형 ---------- */
.hero{ padding: 34px 16px 10px; }
.hero__frame{
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 36px;
  border: 2px solid var(--accent);
  outline: 1px solid var(--line);
  outline-offset: 8px;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.hero__eyebrow{
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}
.hero__frame h1{
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  margin-bottom: .5em;
}
.hero__desc{
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.4em;
  font-size: 1rem;
}
.hero__cta{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  border: 1.5px solid var(--accent);
}
.btn--primary{ background: var(--accent); color: var(--accent-ink); }
.btn--ghost{ background: transparent; color: var(--accent); }
.btn--primary:hover{ opacity: .9; }
.btn--ghost:hover{ background: hsl(var(--h) 40% 92%); }

/* ---------- 본문 ---------- */
main{ padding: 10px 16px 0; }
.content{ max-width: 780px; margin: 0 auto; padding: 30px 0 10px; }
.content h2{
  font-size: 1.35rem;
  margin-top: 2.4em;
  padding-bottom: .4em;
  border-bottom: 1px solid var(--line);
}
.content h2:first-of-type{ margin-top: 0; }
.content h3{ font-size: 1.05rem; margin-top: 1.4em; }
.content ol, .content ul{ padding-left: 1.3em; }
.content li{ margin-bottom: .6em; }
.content strong{ color: var(--accent); }

.note{
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 1.4em 0;
  color: var(--ink);
  font-size: .96rem;
}

/* ---------- 이미지 2장 ---------- */
.shot{ margin: 3rem auto; max-width: 1000px; }
.shot__row{ display:flex; justify-content:center; align-items:stretch; gap:1rem; flex-wrap:nowrap; }
.shot__row img{ flex:1 1 0; min-width:0; width:100%; height:auto; display:block; object-fit:cover; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 640px){ .shot__row{ flex-wrap:wrap; } .shot__row img{ flex:1 1 100%; } }

/* ---------- 도식 ---------- */
.diagram{
  margin: 1.6em 0 2.2em;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.diagram svg{ width: 100%; height: auto; display: block; }
.diagram figcaption{
  margin-top: .8em;
  font-size: .86rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- CTA: 오프셋 카드 ---------- */
.cta-offset{ margin: 3rem auto; max-width: 780px; }
.cta-offset__wrap{ position: relative; padding: 10px 10px 10px 0; }
.cta-offset__wrap::before{
  content: "";
  position: absolute;
  inset: 18px -10px -10px 18px;
  background: hsl(var(--h) 30% 90%);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.cta-offset__card{
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  text-align: center;
}
.cta-offset__title{
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .4em;
}
.cta-offset__desc{ color: var(--muted); margin-bottom: 1.2em; }
.cta-offset__actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq{ margin-top: 1em; }
.faq-item{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--surface);
}
.faq-item h3{
  margin: 0 0 .5em;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  gap: 10px;
}
.faq-item h3 .q-mark{
  flex: none;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem;
}
.faq-item p{ margin: 0; color: var(--muted); }

/* ---------- Footer: 4단 그리드 ---------- */
.ftr{
  margin-top: 4rem;
  padding: 40px 16px 30px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.ftr__inner{
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.ftr__biz{
  grid-column: 1 / 3;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.ftr__biz a{ color: var(--accent); text-decoration: none; }
.ftr__nav{
  grid-column: 3 / 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .9rem;
}
.ftr__nav a{ text-decoration: none; color: var(--ink); }
.ftr__nav a:hover{ color: var(--accent); }
.ftr__copy{
  grid-column: 4 / 5;
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px){
  .ftr__inner{ grid-template-columns: 1fr 1fr; }
  .ftr__biz{ grid-column: 1 / 3; }
  .ftr__nav{ grid-column: 1 / 2; }
  .ftr__copy{ grid-column: 2 / 3; }
}

@media (max-width: 480px){
  .hdr__box{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__frame{ padding: 30px 18px; outline-offset: 5px; }
  .cta-offset__wrap::before{ inset: 12px -6px -6px 12px; }
  .ftr__inner{ grid-template-columns: 1fr; }
  .ftr__biz, .ftr__nav, .ftr__copy{ grid-column: 1 / 2; }
}

@media (max-width: 375px){
  .content h2{ font-size: 1.2rem; }
  .hero__frame h1{ font-size: 1.5rem; }
}
