:root {
  --navy: #14365a;
  --navy-2: #0e2741;
  --ink: #1d2733;
  --muted: #5b6776;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --call: #e8590c;
  --call-dark: #c94a06;
  --accent: #1c7ed6;
  --ok: #2b8a3e;
  --err: #d6336c;
  --radius: 14px;
  --header-h: 56px;
  --bar-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.m-only { display: inline; }
.m-only-flex { display: flex; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; margin-right: auto; }
.logo small { font-weight: 600; font-size: .8rem; color: var(--muted); margin-left: 4px; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 1.1rem; }
.main-nav { display: none; }
.header-tel { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--call); text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.btn.header-cta { display: none; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s; }
.menu-open .main-nav { display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.06); }
.menu-open .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.main-nav a[aria-current="page"] { color: var(--call); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .1s; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 48px; font-size: .98rem; padding: 0 16px; }
.btn-xl { min-height: 64px; font-size: 1.35rem; padding: 0 26px; width: 100%; max-width: 440px; }
.btn-xl span { font-size: 1rem; font-weight: 600; opacity: .9; }
.btn-block { width: 100%; }
.btn-call { background: var(--call); color: #fff; box-shadow: 0 6px 16px rgba(232,89,12,.28); }
.btn-call:hover { background: var(--call-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #1971c2; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-row.center { justify-content: center; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 28px 0 32px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); pointer-events: none; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 700; background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 99px; margin-bottom: 12px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.promises { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.promises li { background: rgba(255,255,255,.12); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: .98rem; }
.promises span { margin-right: 4px; }
.hero .btn-row .btn { flex: 1 1 140px; padding: 0 10px; font-size: 1rem; white-space: nowrap; }
.hero-note { margin: 14px 0 0; font-size: .92rem; opacity: .85; }

/* sections */
.sec { padding: 48px 0; }
.sec.alt { background: var(--bg-alt); }
.sec > .wrap > h2, .sec .narrow > h2 { text-align: center; }
.svc-detail .narrow > h2 { text-align: left; }
.sec-lead { color: var(--muted); text-align: center; margin-top: -4px; }
.sec-lead.left { text-align: left; }
.page-hero { background: var(--bg-alt); padding: 32px 0 28px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); }

.worry-grid { display: grid; gap: 12px; }
.worry { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
.worry strong { display: block; font-size: 1.12rem; color: var(--navy); margin-bottom: 4px; }
.worry span { color: var(--muted); }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.svc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 8px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 1.02rem; }
.svc-icon { font-size: 1.9rem; line-height: 1; }
.link-more { font-weight: 700; text-decoration: none; }

.policy { display: grid; gap: 12px; margin: 20px 0; }
.policy > div { border-left: 4px solid var(--call); background: var(--bg-alt); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.policy p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 20px auto 0; max-width: 640px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.step-no { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps p { margin: 2px 0 0; color: var(--muted); }

.owner { display: flex; gap: 20px; align-items: flex-start; }
.owner h2 { text-align: left !important; }
.owner-badge { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.owner-name { font-size: 1.05rem; }

.area-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 760px; margin: 16px auto; }
.area-box h3 { margin: 0 0 4px; color: var(--navy); }
.area-box small { color: var(--muted); }

.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--muted); }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); padding-bottom: 8px; }

.cta-band { background: var(--navy); color: #fff; padding: 40px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* services page */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips a { padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.check { list-style: none; padding: 0; margin: 0 0 14px; }
.check li { position: relative; padding: 6px 0 6px 28px; }
.check li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }
.note { background: #fff8e6; border-radius: 10px; padding: 12px 14px; color: #6b5200; font-size: .97rem; }
.anchor-alias { position: relative; top: -70px; display: block; }

/* contact */
.contact-cards { display: grid; gap: 10px; margin-top: 16px; }
.c-card { display: flex; flex-direction: column; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.c-card span { font-size: 1.5rem; }
.c-card strong { font-size: 1.2rem; }
.c-card small { color: var(--muted); font-size: .95rem; }
.c-tel { border-color: var(--call); }
.c-tel strong { color: var(--call); font-size: 1.45rem; }

.inquiry { margin-top: 18px; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field em { font-style: normal; font-size: .78rem; color: #fff; background: var(--err); padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.field small { color: var(--muted); font-weight: 500; }
input[type="text"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid #c9d2dd; border-radius: 10px; background: #fff; color: var(--ink); min-height: 52px;
}
select + input, .date-input { margin-top: 8px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(28,126,214,.25); border-color: var(--accent); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1.5px solid #c9d2dd; border-radius: 10px; cursor: pointer; min-height: 48px; font-weight: 500; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: #e7f1fb; }
.hint { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.err { color: var(--err); font-size: .93rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.consent details { background: var(--bg-alt); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: .93rem; color: var(--muted); }
.consent summary { cursor: pointer; font-weight: 600; }
.consent-check { border: 0; padding: 4px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { text-align: center; }

.thanks { padding: 64px 0; }
.big-check { font-size: 3rem; margin: 0; }
.thanks .btn-xl { margin: 16px auto; }

.prose h2 { font-size: 1.2rem; text-align: left !important; margin-top: 1.6em; }
.prose p { color: #384452; }

/* cases */
.sec h2.left { text-align: left; }
.case-grid { display: grid; gap: 14px; margin: 20px 0 6px; }
.case-card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.case-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.case-card div { padding: 12px 14px 14px; }
.case-card strong { display: block; line-height: 1.4; }
.case-card span { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.case-no { color: var(--call); font-weight: 800; margin: 0 0 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tags span { font-size: .85rem; font-weight: 600; background: #e7f1fb; color: #1864ab; padding: 3px 10px; border-radius: 99px; }
.case-sum { max-width: 760px; }
.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.ph { display: block; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.ph img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .25s; }
.ph:hover img { transform: scale(1.03); }
@media (min-width: 640px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .ph-grid { grid-template-columns: repeat(3, 1fr); }
  .ph-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
@media (min-width: 960px) { .ph-grid:not(.two) { grid-template-columns: repeat(5, 1fr); } }

/* footer */
.site-footer { background: #0b1a2b; color: #aab6c4; padding: 32px 0; font-size: .92rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #d0dae6; }
.foot-brand { color: #fff; font-weight: 800; font-size: 1.05rem; }
.copy { margin-top: 10px !important; opacity: .7; }

/* bottom CTA bar (mobile) */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
.cta-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: var(--bar-h); text-decoration: none; color: var(--navy); font-weight: 700; font-size: .92rem; gap: 2px; border-right: 1px solid var(--line); }
.cta-bar a:last-child { border-right: 0; }
.cta-bar a:first-child { background: var(--call); color: #fff; flex: 1.4; font-size: 1rem; }
.cta-bar span { font-size: 1.25rem; line-height: 1; }

@media (min-width: 640px) {
  .worry-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .policy { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .m-only { display: none; }
}

@media (min-width: 960px) {
  :root { --header-h: 68px; }
  body { padding-bottom: 0; }
  .cta-bar { display: none; }
  .m-only-flex { display: none; }
  .menu-btn { display: none; }
  .main-nav { display: flex; gap: 4px; margin-right: 12px; }
  .main-nav a { padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
  .main-nav a:hover { background: var(--bg-alt); }
  .header-tel { gap: 6px; font-size: 1.3rem; }
  .btn.header-cta { display: inline-flex; }
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: 3rem; }
  .sec { padding: 72px 0; }
}
