:root {
  --navy: #0E2340;
  --navy-2: #16305A;
  --blue: #2C4F86;
  --blue-2: #5D7FB2;
  --sky: #A9C2E6;
  --ink: #1B2A3F;
  --muted: #55657A;
  --line: #D7DEE8;
  --bg-soft: #F3F6FA;
  --white: #fff;
  --serif: "Noto Serif KR", "Batang", serif;
  --sans: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.35; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 30; background: var(--white); color: var(--navy); padding: 10px 14px; }
.skip-link:focus { top: 8px; }

.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 10; }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.main-nav a { color: #DDE6F2; text-decoration: none; font-size: .95rem; padding: 6px 0; }
.main-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
.nav-item { position: relative; }
.nav-item > a { display: inline-block; }
.sub-nav { display: none; list-style: none; margin: 0; padding: 8px 0; }
@media (hover: hover) and (min-width: 721px) {
  .sub-nav { display: block; position: absolute; top: 100%; left: 50%; min-width: 148px; background: var(--navy-2); border-top: 2px solid var(--sky); box-shadow: 0 10px 24px rgba(14, 35, 64, .35); transform: translateX(-50%); visibility: hidden; opacity: 0; transition: opacity .15s ease, visibility 0s linear .15s; }
  .nav-item:hover > .sub-nav, .nav-item:focus-within > .sub-nav { visibility: visible; opacity: 1; transition-delay: 0s; }
  .sub-nav a { display: block; padding: 8px 18px; white-space: nowrap; text-align: center; }
  .sub-nav a:hover { background: var(--blue); text-decoration: none; }
}
.section-tabs { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.section-tabs .wrap { display: flex; flex-wrap: wrap; gap: 0 28px; }
.section-tabs a { padding: 14px 2px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.section-tabs a:hover { color: var(--navy); }
.section-tabs a[aria-current="page"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--blue); }
.greeting-lead { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.5; color: var(--blue); margin: .4em 0 1.2em; }
.greeting-sign { margin: 2em 0 0; text-align: right; font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.value-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-grid li { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 24px 22px; }
.value-grid strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin-bottom: .5em; }
.value-grid p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }

/* 연혁 */
.history-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.history-era { display: grid; grid-template-columns: 170px 1fr; }
.history-era h2 { margin: 0; padding-top: 2px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--blue); }
.history-era ul { list-style: none; margin: 0; padding: 4px 0 44px 32px; border-left: 2px solid var(--line); }
.history-era:last-child ul { padding-bottom: 8px; }
.history-era ul li { position: relative; padding: 0 0 18px; font-size: 1.06rem; }
.history-era ul li:last-child { padding-bottom: 0; }
.history-era ul li::before { content: ""; position: absolute; left: -39px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); }
@media (max-width: 560px) {
  .history-era { grid-template-columns: 1fr; gap: 12px; }
  .history-era ul { margin-left: 6px; padding-left: 26px; }
  .history-era ul li::before { left: -33px; }
}

/* 조직도 */
.org-tree { display: flex; flex-direction: column; align-items: center; }
.org-main { display: flex; flex-direction: column; align-items: center; }
.org-main::after { content: ""; width: 2px; height: 36px; background: var(--blue-2); }
.org-node { width: var(--d, 136px); height: var(--d, 136px); flex: none; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--white); color: var(--navy); border: 4px solid var(--blue); box-shadow: 0 8px 20px rgba(14, 35, 64, .12); font-family: var(--serif); font-size: clamp(.98rem, 2.2vw, 1.18rem); }
.org-node-main { --d: clamp(140px, 22vw, 184px); position: relative; margin-bottom: 30px; border: 0; color: var(--white); background: linear-gradient(145deg, var(--blue), var(--navy)); box-shadow: 0 0 0 8px var(--bg-soft), 0 0 0 9px var(--line), 0 14px 28px rgba(14, 35, 64, .22); font-size: clamp(1.2rem, 2.8vw, 1.5rem); }
.org-node-main::after { content: ""; position: absolute; left: calc(50% - 1px); top: 100%; width: 2px; height: 30px; background: var(--blue-2); }
.org-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.org-people li { padding: 8px 18px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.org-branches { list-style: none; margin: 0; padding: 0; width: min(100%, 860px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.org-branches > li { --d: clamp(92px, 17vw, 136px); position: relative; padding: 36px 6px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.org-branches > li::before { content: ""; position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 36px; background: var(--blue-2); }
.org-branches > li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--blue-2); }
.org-branches > li:first-child::after { left: 50%; }
.org-branches > li:last-child::after { right: 50%; }
@media (max-width: 560px) {
  .org-people li { padding: 7px 10px; font-size: .9rem; }
  .org-branches > li { padding-inline: 2px; }
  .org-branches .org-people li { padding: 7px 6px; font-size: .84rem; white-space: nowrap; }
}

/* 오시는 길 */
.office-wrap { max-width: 980px; }
.office-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-bottom: 26px; }
.office-tabs[hidden] { display: none; }
.office-tabs button { font: inherit; padding: 14px 6px; cursor: pointer; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); border-bottom: 2px solid var(--line); margin-left: -1px; }
.office-tabs button:first-child { margin-left: 0; }
.office-tabs button:hover { color: var(--navy); }
.office-tabs button[aria-selected="true"] { position: relative; background: var(--white); color: var(--navy); font-weight: 700; border-bottom-color: var(--navy); }
.office-panel + .office-panel { margin-top: 56px; }
.has-tabs .office-panel + .office-panel { margin-top: 0; }
.has-tabs .office-panel h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.office-map { aspect-ratio: 16 / 8; min-height: 300px; width: 100%; background: var(--bg-soft); border: 1px solid var(--line); }
.office-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.office-info { margin: 26px 0 0; border-top: 2px solid var(--navy); }
.office-info > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 15px 8px; border-bottom: 1px solid var(--line); }
.office-info dt { font-weight: 700; color: var(--navy); }
.office-info dd { margin: 0; }
.office-info a { font-weight: 500; }
.office-links { margin: 16px 0 0; text-align: right; }
@media (max-width: 560px) { .office-info > div { grid-template-columns: 62px 1fr; } }
.header-tel { color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }

.section { padding: clamp(44px, 7vw, 80px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--muted); margin: 0; }
.page-head { background: var(--navy); color: var(--white); padding: clamp(36px, 6vw, 60px) 0; }
.page-head h1 { color: var(--white); margin: 0 0 .3em; }
.page-head p { color: #D5E0F0; margin: 0; max-width: 46em; }

.btn { display: inline-block; padding: 12px 22px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); }

.site-footer { background: var(--navy); color: #C5D2E5; font-size: .9rem; padding: 40px 0 44px; }
.site-footer a { color: var(--white); }
.footer-in { display: grid; gap: 22px; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.2fr); }
.footer-in p { margin: 0 0 .2em; }
.footer-name { color: var(--white); font-weight: 700; font-size: 1.05rem; }
.footer-offices { list-style: none; margin: 0; padding: 0; }
.footer-offices strong { color: var(--white); font-weight: 500; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.16); padding-top: 16px; }

.call-bar { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: 58px; }
  .header-in { gap: 6px 14px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; gap: 2px 14px; }
  .main-nav a { font-size: .88rem; }
  .header-tel { margin-left: auto; }
  .footer-in { grid-template-columns: 1fr; }
  .call-bar { display: block; position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--blue); color: var(--white); text-align: center; font-weight: 700; padding: 15px 12px; text-decoration: none; }
}

/* 첫 화면 */
.home .site-header { background: transparent; position: absolute; inset: 0 0 auto 0; z-index: 5; }
.hero { position: relative; min-height: min(84vh, 720px); display: flex; align-items: flex-start; color: var(--white); background: #0E2340 url("hero-daejeon.jpg") center 42% / cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,35,64,.96) 0%, rgba(14,35,64,.86) 34%, rgba(14,35,64,.42) 66%, rgba(14,35,64,.62) 100%), linear-gradient(90deg, rgba(14,35,64,.55), rgba(14,35,64,0) 62%); }
.hero-in { padding-top: clamp(112px, 15vh, 148px); padding-bottom: 56px; }
.hero-label { letter-spacing: .16em; color: var(--sky); font-size: .95rem; margin-bottom: .9em; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.2vw, 3.6rem); text-shadow: 0 1px 12px rgba(0,0,0,.4); margin-bottom: .45em; }
.hero-sub { color: #DDE6F2; font-size: clamp(1rem, 2vw, 1.15rem); margin-bottom: 1.6em; }
.facts { background: var(--navy); color: var(--white); }
.facts-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-in > div { padding: 22px 20px; border-left: 1px solid rgba(255,255,255,.16); }
.facts-in > div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: clamp(1.25rem, 3vw, 1.8rem); font-family: var(--serif); }
.facts span { color: #C5D2E5; font-size: .92rem; }

.service-grid, .link-cards, .office-grid, .column-list, .calendar-list { list-style: none; margin: 0; padding: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-grid a { display: block; height: 100%; background: var(--white); padding: 28px 26px; text-decoration: none; color: var(--ink); transition: background .15s; }
.service-grid a:hover { background: var(--bg-soft); }
.service-grid strong { display: block; color: var(--navy); font-size: 1.22rem; font-family: var(--serif); margin-bottom: 4px; }
.service-grid span { color: var(--muted); font-size: .95rem; }

.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.calendar-list li { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.calendar-list li:first-child { border-top: 1px solid var(--line); }
.cal-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-title { font-weight: 500; }
.cal-dday { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-cards a { display: block; padding: 20px 22px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); background: var(--white); }
.link-cards a:hover { border-color: var(--blue-2); }
.link-cards span { display: block; color: var(--muted); font-size: .93rem; margin-top: 3px; }

.column-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.column-list a { display: block; height: 100%; background: var(--white); border: 1px solid var(--line); padding: 20px; text-decoration: none; color: var(--ink); }
.column-list a:hover { border-color: var(--blue-2); }
.column-list strong { display: block; color: var(--navy); margin-bottom: 6px; line-height: 1.45; }
.col-date { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.col-sum { display: block; color: var(--muted); font-size: .92rem; }
.column-more { margin-top: 16px; }

.partner-band { background: #E9EEF5; border-block: 1px solid var(--line); }
.partner-kicker { color: var(--blue); font-weight: 700; font-size: .92rem; }
.contact-band { background: var(--navy); color: #D5E0F0; }
.contact-band h2, .contact-band h3 { color: var(--white); }
.contact-band .section-head p { color: #C5D2E5; }
.contact-band a { color: var(--white); }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.office-grid li { background: var(--navy); padding: 24px; }
.office-grid p { margin-bottom: .6em; }
.office-tel { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.contact-more { margin: 18px 0 0; }

/* 본문 페이지 */
.prose { max-width: 800px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.faq dt { font-weight: 700; color: var(--navy); margin-top: 1em; }
.faq dd { margin: .3em 0 0; }
.notice { background: var(--bg-soft); border-left: 3px solid var(--blue); padding: 14px 18px; color: var(--ink); }

@media (max-width: 860px) {
  .column-list, .link-cards { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { min-height: 560px; }
  .hero-in { padding-top: 156px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid a { padding: 18px 16px; }
  .facts-in > div { padding: 16px 10px; }
  .facts-in > div:first-child { padding-left: 0; }
  .calendar-list li { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; }
  .cal-date { grid-column: 1 / -1; font-size: .88rem; }
}

.location-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.location-list li { border: 1px solid var(--line); padding: 24px; }
.location-list h2 { font-size: 1.3rem; }
.location-list p { margin-bottom: .5em; }
@media (max-width: 860px) { .location-list { grid-template-columns: 1fr; } }

/* 계산기 */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.calc-layout > noscript { grid-column: 1 / -1; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
.field.check label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.field input[type=text], .field input[type=date], .field select { width: 100%; padding: 11px 12px; border: 1px solid #A8B4C5; font: inherit; background: var(--white); color: var(--ink); }
.field input[aria-invalid=true] { border-color: #A32020; }
.money { display: flex; align-items: center; gap: 8px; }
.money input { text-align: right; }
.money span { color: var(--muted); }
.hint { font-size: .86rem; color: var(--muted); margin: 4px 0 0; }
.field-error { color: #A32020; font-size: .9rem; margin: 4px 0 0; }
.calc-result { border: 1px solid var(--line); padding: 24px; margin-bottom: 18px; background: var(--white); }
.calc-result h2 { font-size: 1.3rem; }
.calc-total-label { margin: 0; color: var(--muted); }
.calc-total { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.calc-breakdown { display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; margin: 0; font-size: .94rem; border-top: 1px solid var(--line); padding-top: 14px; }
.calc-breakdown dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.calc-notice p { margin: 0 0 .5em; font-size: .9rem; }
.calc-notice p:last-child { margin: 0; }
.calc-side > p { margin-top: 16px; }
[hidden] { display: none !important; }
@media (max-width: 860px) { .calc-layout { grid-template-columns: 1fr; gap: 24px; } }

/* 접근성과 터치 */
h1, h2, h3 { text-wrap: balance; }
a, button { touch-action: manipulation; }
@media (max-width: 720px) { .call-bar { padding-bottom: calc(15px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-grid a { transition: none; }
}

.partner-head { background: #34506F; }
.partner-head .partner-kicker { color: #DDE6F2; margin-bottom: .4em; }
