:root {
  --ink: #121619;
  --paper: #f4f3ef;
  --line: #e3e1db;
  --line-2: #d6d3cb;
  --text: #16191c;
  --sub: #5c6166;
  --muted: #8b9095;
  --accent: #1f3d6b;
  --accent-d: #162d52;
  --accent-l: #e8edf5;
  --red: #c8442f;
  --hd: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
section[id] { scroll-margin-top: calc(var(--hd) - 1px); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sec-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.035em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #283036; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); }
.btn-line { background: #fff; color: var(--text); border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--text); }
.btn:disabled { opacity: .55; cursor: default; }

.inp {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #dad8d2;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.inp::placeholder { color: #a4a8ac; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 61, 107, .14); }
.inp.is-error { border-color: var(--red); }

.chk { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #3b4045; cursor: pointer; }
.chk input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #bfc3c6;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.chk input:checked { background: var(--accent); border-color: var(--accent); }
.chk input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.chk input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chk.is-error input { border-color: var(--red); }

.link {
  padding: 4px;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hd {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--hd);
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.hd.is-solid { background: #fff; color: var(--text); box-shadow: 0 1px 0 var(--line); }
.hd-in { display: flex; align-items: center; gap: 40px; height: 100%; }

.logo {
  display: block;
  flex: none;
  height: 44px;
  aspect-ratio: 579.91 / 146.52;
  background: currentColor;
  -webkit-mask: url(../img/logo.svg) center / contain no-repeat;
  mask: url(../img/logo.svg) center / contain no-repeat;
}
.hd.is-solid .logo { color: #2d1d0a; }

.gnb { display: flex; gap: 36px; margin-left: auto; }
.gnb a { font-size: 16px; font-weight: 500; text-decoration: none; opacity: .86; transition: opacity .2s; }
.gnb a:hover { opacity: 1; }

.hd-cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s;
}
.hd-cta:hover { background: var(--accent-d); }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 14, .82) 0%, rgba(10, 12, 14, .6) 38%, rgba(10, 12, 14, .66) 70%, rgba(10, 12, 14, .82) 100%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 8s linear;
}
.hero-slide.is-on { opacity: 1; transform: scale(1); }
.hero-slide:nth-child(1) { background-image: url(../img/hero-1.webp); }
.hero-slide:nth-child(2) { background-image: url(../img/hero-2.webp); }
.hero-slide:nth-child(3) { background-image: url(../img/hero-3.webp); }

.hero-txt { position: relative; z-index: 2; padding: 0 24px; }
.hero-logo {
  margin: 0 0 30px;
  padding-left: .32em;
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 600;
  letter-spacing: .32em;
}
.hero-logo::after { content: ""; display: block; width: 36px; height: 1px; margin: 24px auto 0; background: rgba(255, 255, 255, .5); }
.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.035em;
}
.js .hero-logo, .js .hero h1 {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), filter 1.1s ease;
}
.js .hero h1 { transition-delay: .25s; }
.is-ready .hero-logo, .is-ready .hero h1 { opacity: 1 !important; transform: none !important; filter: none !important; }

.hero-ctrl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-bars { display: flex; gap: 8px; }
.hero-bar {
  position: relative;
  width: 44px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
}
.hero-bar::before { content: ""; position: absolute; inset: -12px 0; }
.hero-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-bar.is-on::after { animation: fill 6.5s linear forwards; }
.hero.is-paused .hero-bar.is-on::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

.hero-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.hero-toggle::before, .hero-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 10px;
  margin-top: -5px;
  background: #fff;
}
.hero-toggle::before { left: 11px; }
.hero-toggle::after { right: 11px; }
.hero.is-paused .hero-toggle::before {
  left: 11px;
  width: 0;
  height: 0;
  background: none;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #fff;
}
.hero.is-paused .hero-toggle::after { display: none; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .7);
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(#fff, #fff) 0 -18px / 100% 18px no-repeat, rgba(255, 255, 255, .25);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { to { background-position: 0 44px, 0 0; } }

.lawyer { padding: 120px 0 110px; background: var(--paper); }
.lawyer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; border-bottom: 1px solid var(--line-2); }
.lawyer-photo { position: relative; display: flex; justify-content: center; align-self: end; }
.lawyer-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 440px);
  height: 78%;
  border-radius: 999px 999px 0 0;
  background: #e1e6ee;
  transform: translateX(-50%);
}
.lawyer-photo img { position: relative; display: block; width: min(100%, 400px); height: auto; }
.lawyer-intro { padding: 40px 0 72px; }
.lawyer-lead { margin: 0 0 12px; font-size: 20px; font-weight: 600; color: var(--accent); }
.lawyer-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.lawyer-name span { font-size: 14px; color: var(--sub); }
.lawyer-name strong { font-size: 30px; font-weight: 700; letter-spacing: .08em; }
.lawyer-name em {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid #c4c1b8;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--sub);
  vertical-align: 3px;
}

.career { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin: 0; padding-top: 56px; }
.career dt { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-size: 16px; font-weight: 700; }
.career dd { margin: 0; }
.career ul { margin: 0; padding: 0; list-style: none; }
.career li { position: relative; padding-left: 13px; font-size: 15px; line-height: 1.72; color: #3b4045; }
.career li::before { content: ""; position: absolute; left: 0; top: .8em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.process { padding: 140px 0; }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 72px; }
.process-head p { margin: 0; font-size: 17px; color: var(--sub); }

.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.flow::before, .flow::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.flow::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.4, 0, .2, 1); }
.flow li { position: relative; padding: 44px 28px 0 0; }
.flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  transition: background-color .3s;
}
.flow h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: -0.03em; }
.flow p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--sub); }

.consult { position: relative; background: #fff; }
.consult::before, .consult-txt::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: linear-gradient(180deg, rgba(12, 15, 17, .35), rgba(12, 15, 17, .55)), url(../img/consult-bg.webp) center / cover no-repeat #1b1e21;
}
.consult-txt::before { display: none; }
.consult-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 820px; }
.consult-txt { display: flex; flex-direction: column; justify-content: center; padding: 110px 72px 110px 0; color: #fff; }
.consult-kicker { margin: 0 0 18px; font-size: 18px; color: rgba(255, 255, 255, .75); }
.consult-txt h2 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; line-height: 1.42; letter-spacing: -0.035em; }
.consult-txt h2 b { font-weight: 700; }
.consult-txt hr { width: 120px; height: 1px; margin: 32px 0 28px; border: 0; background: rgba(255, 255, 255, .5); }
.consult-txt > p:not(.consult-kicker) { margin: 0; font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, .78); }
.consult-tel {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 54px;
  margin-top: 40px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.consult-tel:hover { background: #fff; color: var(--ink); }

.consult-form { align-self: center; padding: 100px 0 100px 80px; }
.consult-form h3 { margin: 0 0 12px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.consult-lead { margin: 0 0 32px; font-size: 16px; line-height: 1.7; color: var(--sub); }
.consult-form .inp { height: 60px; border: 0; border-radius: 4px; background: #f2f2f0; }
.consult-form .inp:focus { box-shadow: inset 0 -2px 0 var(--accent); }
.consult-form .inp.is-error { box-shadow: inset 0 -2px 0 var(--red); }
.consult-form textarea.inp { display: block; height: auto; min-height: 120px; padding: 18px; line-height: 1.6; resize: vertical; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform-time { min-width: 0; margin: 22px 0 16px; padding: 0; border: 0; }
.cform-time legend { margin: 0 0 10px; padding: 0; font-size: 14px; font-weight: 600; color: #3b4045; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: #3b4045;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cform-agree { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 22px; }
.cform-diag { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: var(--accent-l); font-size: 14px; line-height: 1.5; color: var(--accent-d); }
.cform-err { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--red); }
.cform-err:empty { display: none; }

.cdone { padding: 28px 0; text-align: center; }
.cdone strong, .xp-done strong { display: block; margin-bottom: 8px; font-size: 20px; }
.cdone p { margin: 0; color: var(--sub); }
.cdone-ic { display: grid; place-content: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-l); }
.cdone-ic::after { content: ""; width: 10px; height: 18px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }

.location { padding: 130px 0; background: var(--paper); }
.loc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.loc-info { margin: 40px 0 32px; border-top: 1px solid var(--line-2); }
.loc-info div { display: grid; grid-template-columns: 72px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.loc-info dt { font-size: 15px; color: var(--sub); }
.loc-info dd { margin: 0; font-size: 17px; font-weight: 500; }
.loc-info a { text-decoration: none; }
.loc-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s;
}
.map-btn:hover { border-color: var(--text); }
.mk { display: grid; place-content: center; width: 26px; height: 26px; border-radius: 6px; font-size: 13px; font-style: normal; font-weight: 800; }
.mk-naver { background: #03c75a; color: #fff; }
.mk-kakao { background: #fee500; color: #191600; }
.loc-map { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 16px; background: #e6e4de; }
.kmap { position: absolute; inset: 0; }
.kmap iframe { width: 100%; height: 100%; border: 0; }
.kmap-open {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}
.kmap-label {
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.kmap-label b { display: block; font-size: 14px; }
.kmap-label span { color: rgba(255, 255, 255, .72); }
.kmap-label::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink); }

.ft { padding: 44px 0 48px; background: var(--ink); color: rgba(255, 255, 255, .6); font-size: 14px; }
.ft-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ft .logo { height: 40px; color: #fff; }
.ft-privacy { padding: 0; border: 0; background: none; font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ft-info { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 10px; }
.ft-copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .4); }

.float { position: fixed; right: 28px; bottom: 28px; z-index: 60; }
.float-tel {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23121619' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 8px 20px rgba(18, 22, 25, .16);
}

.mbar { display: none; }

.dg-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 14px 16px 16px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: var(--accent);
  color: #fff;
  box-shadow: -4px 8px 22px rgba(18, 22, 25, .25);
  cursor: pointer;
  transform: translate(110%, -50%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), padding .2s;
}
.dg-tab.is-on { transform: translate(0, -50%); animation: tabPulse 2.4s ease-in-out infinite; }
.dg-tab:hover { padding-right: 20px; }
.dg-tab b { padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--accent-d); font-size: 11px; font-weight: 800; }
.dg-tab span { font-size: 13px; font-weight: 700; }
.dg-tab::after { content: ""; width: 7px; height: 7px; margin: 2px 0 0 3px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(45deg); }
@keyframes tabPulse { 50% { box-shadow: -4px 8px 30px rgba(31, 61, 107, .6); } }

.dg-panel {
  position: fixed;
  top: 50%;
  right: 40px;
  z-index: 90;
  width: 400px;
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(100% + 60px), -50%);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .3s;
}
.dg-panel.is-open { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.dg-card {
  position: relative;
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 34px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(18, 22, 25, .2);
}
.dg-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background-color .2s, transform .25s;
}
.dg-x::before, .dg-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; background: var(--text); }
.dg-x::before { transform: rotate(45deg); }
.dg-x::after { transform: rotate(-45deg); }
.dg-x:hover { background: #f1f1ef; transform: rotate(90deg); }
.dg-panel .dg-title { font-size: 24px; }
.dg-panel .dg-desc { margin-bottom: 24px; font-size: 14px; }
.dg-panel .dg-field { margin-bottom: 18px; }
.dg-panel .dg-label { font-size: 14px; }
.dg-panel .inp { height: 54px; }
.dg-panel .seg span { height: 50px; }
.dg-panel .seg input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: none; }
.dg-panel .btn-accent { height: 56px; margin-top: 6px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-dim { position: absolute; inset: 0; background: rgba(12, 14, 16, .6); opacity: 0; transition: opacity .25s; }
.modal-box {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 40px 32px 32px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .3, 1);
  outline: none;
}
.modal.is-open .modal-dim { opacity: 1; }
.modal.is-open .modal-box { opacity: 1; transform: none; }
.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.modal-x::before, .modal-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px; margin: -.8px 0 0 -9px; background: currentColor; }
.modal-x::before { transform: rotate(45deg); }
.modal-x::after { transform: rotate(-45deg); }
.modal-x:hover { background: #f1f1ef; }

.dg-title { margin: 0 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; text-align: center; }
.dg-desc { margin: 0 0 28px; font-size: 15px; line-height: 1.65; color: var(--sub); text-align: center; }
.dg-field, .xp-field { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.dg-label, .xp-label { display: block; margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 700; }
.dg-amount { position: relative; }
.dg-amount .inp { padding-right: 46px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.dg-amount span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--sub); }

.seg { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; }
.xp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .xp-grid label { position: relative; }
.seg input, .xp-grid input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span, .xp-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 6px;
  border: 1px solid #dad8d2;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #3b4045;
  text-align: center;
  transition: border-color .15s, background-color .15s, color .15s;
}
.seg input:checked + span, .xp-grid input:checked + span { border-color: var(--accent); background: var(--accent-l); color: var(--accent-d); box-shadow: inset 0 0 0 1px var(--accent); }
.seg input:focus-visible + span, .xp-grid input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.xp-grid.is-error span { border-color: var(--red); }

.dr { margin: 26px 0 24px; border-top: 1px solid var(--line); }
.dr div { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.dr dt { padding-top: 5px; font-size: 15px; font-weight: 600; color: #3b4045; }
.dr dd { margin: 0; font-size: 15px; text-align: right; }
.dr b { margin-right: 3px; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dr small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.dr .is-key b { color: var(--accent); }
.dr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr-note { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }

.pv { width: min(100%, 560px); }
.pv-title { margin: 0 0 22px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.pv-body { margin-bottom: 26px; }
.pv-body h3 { margin: 20px 0 6px; font-size: 15px; font-weight: 700; }
.pv-body h3:first-child { margin-top: 0; }
.pv-body p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #4a4f54; }

.xp .xp-box { display: flex; flex-direction: column; width: min(100%, 380px); padding: 0; overflow: hidden; }
.xp-head { position: relative; flex: none; padding: 16px 52px; background: var(--ink); color: #fff; text-align: center; }
.xp-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.xp-head .modal-x { top: 50%; right: 8px; margin-top: -20px; color: #fff; }
.xp-head .modal-x:hover { background: rgba(255, 255, 255, .12); }
.xp-scroll { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; }
.xp-banner { padding: 26px 20px 22px; border-bottom: 1px solid var(--line); background: var(--paper); text-align: center; }
.xp-l1, .xp-l2 { margin: 0; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.xp-l1 { font-size: clamp(22px, 7vw, 30px); letter-spacing: -0.04em; }
.xp-l2 { margin-top: 2px; font-size: clamp(28px, 9vw, 38px); letter-spacing: -0.045em; color: var(--accent); }
.xp-badge {
  display: inline-block;
  margin: 14px 0 0;
  padding: 8px 14px;
  border: 1px solid #d3d9e3;
  border-radius: 999px;
  background: #fff;
  font-size: clamp(14px, 4.4vw, 17px);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.xp-badge b { color: var(--red); }
.xp-form { padding: 20px 20px 22px; }
.xp-field { margin-bottom: 16px; }
.xp-label { margin-bottom: 8px; font-size: 14.5px; }
.xp .inp { height: 48px; }
.xp-grid span { height: 46px; }
.xp-phone { display: grid; grid-template-columns: 1fr 12px 1fr 12px 1fr; align-items: center; gap: 4px; }
.xp-phone .inp { padding: 0 6px; text-align: center; letter-spacing: .04em; }
.xp-phone span { color: #b0b4b8; text-align: center; }
.terms { margin: 4px 0 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.term-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; }
.term-row .chk { font-size: 14px; }
.term-more { flex: none; padding: 4px; border: 0; background: none; font-size: 13px; color: var(--muted); cursor: pointer; }
.term-more::after { content: " \203A"; }
.term-more[aria-expanded="true"] { color: var(--accent); }
.term-body { display: none; margin: 0 0 8px; padding: 12px 14px; border-radius: 8px; background: #f5f5f3; font-size: 12.5px; line-height: 1.7; color: var(--sub); }
.term-body b { color: #3b4045; }
.term.is-open .term-body { display: block; }
.xp-cta { height: 54px; }
.xp-secure { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.xp-done { display: none; padding: 64px 24px; text-align: center; }
.xp-done p { margin: 0 0 26px; font-size: 14.5px; line-height: 1.65; color: var(--sub); }
.xp-done .btn { min-width: 140px; height: 50px; }
.xp.is-done .xp-banner, .xp.is-done .xp-form { display: none; }
.xp.is-done .xp-done { display: block; }

.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .6s ease, filter .6s ease; }
.js [data-reveal="right"] { transform: translateX(-40px); }
.js [data-reveal="left"] { transform: translateX(40px); }
.js [data-reveal="blur"] { opacity: 1; transform: none; filter: blur(20px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal].is-in[data-delay="1"] { transition-delay: .15s; }
.js [data-reveal].is-in[data-delay="2"] { transition-delay: .3s; }
.js .flow[data-reveal] { opacity: 1; transform: none; }
.js .flow li { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .flow.is-in li { opacity: 1; transform: none; }
.flow.is-in::after { transform: scaleX(1); }
.flow.is-in li::before { background: var(--accent); }
.flow li:nth-child(2), .flow li:nth-child(2)::before { transition-delay: .25s; }
.flow li:nth-child(3), .flow li:nth-child(3)::before { transition-delay: .5s; }
.flow li:nth-child(4), .flow li:nth-child(4)::before { transition-delay: .75s; }
.flow li:nth-child(5), .flow li:nth-child(5)::before { transition-delay: 1s; }

@media (min-width: 1025px) {
  .hero-txt { transition: padding-right .5s cubic-bezier(.4, 0, .2, 1); }
  .hero.dg-space .hero-txt { padding-right: min(460px, 38vw); }
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .xp { place-items: center end; padding: 0; }
  .xp .xp-box { width: 390px; max-height: calc(100vh - 24px); border-radius: 18px 0 0 18px; opacity: 1; transform: translateX(100%); }
  .xp.is-open .xp-box { transform: none; }
}

@media (max-width: 1180px) {
  .lawyer-top { gap: 48px; }
  .career { gap: 28px; }
  .career li { font-size: 14px; }
}

@media (max-width: 1024px) {
  .gnb { gap: 24px; }
  .hd-in { gap: 24px; }
  .flow { grid-template-columns: 1fr; padding-left: 4px; }
  .flow::before, .flow::after { left: 11px; right: auto; top: 6px; bottom: 30px; width: 1px; height: auto; }
  .flow::after { transform: scaleY(0); transform-origin: top; }
  .flow.is-in::after { transform: scaleY(1); }
  .flow li { padding: 0 0 36px 44px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li::before { top: 4px; }
  .flow h3 { margin-bottom: 6px; }
  .loc-grid { grid-template-columns: 1fr; gap: 44px; }
  .loc-map { aspect-ratio: 4 / 3; }
  .career { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .consult::before { display: none; }
  .consult-grid { grid-template-columns: 1fr; min-height: 0; }
  .consult-txt { position: relative; isolation: isolate; margin: 0 -24px; padding: 88px 24px 72px; }
  .consult-txt::before { display: block; z-index: -1; width: 100%; }
  .consult-form { max-width: 640px; padding: 64px 0 88px; }
  .dg-panel { right: auto; left: 50%; width: min(380px, calc(100vw - 32px)); transform: translate(-50%, -50%) scale(.94); }
  .dg-panel.is-open { transform: translate(-50%, -50%) scale(1); }
  .dg-card { max-height: calc(100dvh - 140px); padding: 30px 20px 22px; }
}

@media (max-width: 768px) {
  :root { --hd: 62px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 40px); }
  .gnb { display: none; }
  .hd-in { justify-content: space-between; }
  .logo { height: 36px; }
  .hd-cta { height: 36px; padding: 0 14px; font-size: 14px; }

  .hero { height: calc(100svh - 60px - env(safe-area-inset-bottom)); min-height: 520px; }
  .hero-slide:nth-child(1) { background-image: url(../img/hero-1-m.webp); }
  .hero-slide:nth-child(2) { background-image: url(../img/hero-2-m.webp); }
  .hero-slide:nth-child(3) { background-image: url(../img/hero-3-m.webp); }
  .hero-logo { margin-bottom: 24px; letter-spacing: .26em; padding-left: .26em; }
  .hero-logo::after { margin-top: 20px; }
  .hero h1 { font-size: clamp(27px, 7.4vw, 38px); }
  .hero-ctrl { justify-content: center; bottom: 28px; }
  .hero-scroll { display: none; }

  .lawyer { padding: 88px 0 72px; }
  .lawyer-top { grid-template-columns: 1fr; gap: 0; }
  .lawyer-intro { order: 1; padding: 0 0 36px; }
  .lawyer-photo { order: 2; }
  .lawyer-photo::before { width: min(80%, 320px); }
  .lawyer-photo img { width: min(76%, 300px); }
  .lawyer-lead { font-size: 17px; }
  .lawyer-name { margin-top: 24px; padding-top: 20px; }
  .lawyer-name strong { font-size: 26px; }
  .career { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .career li { font-size: 15px; }

  .process, .location { padding: 88px 0; }
  .process-head { display: block; margin-bottom: 44px; }
  .process-head p { margin-top: 14px; font-size: 16px; }
  .flow h3 { font-size: 17px; }

  .consult-txt { margin: 0 -20px; padding: 72px 20px 60px; }
  .consult-kicker { margin-bottom: 14px; font-size: 15px; }
  .consult-txt h2 { font-size: 28px; }
  .consult-txt hr { width: 80px; margin: 24px 0 20px; }
  .consult-txt > p:not(.consult-kicker) { font-size: 15.5px; }
  .consult-tel { height: 48px; margin-top: 28px; font-size: 16px; }
  .consult-form { padding: 48px 0 72px; }
  .consult-form h3 { font-size: 22px; }
  .consult-lead { margin-bottom: 24px; font-size: 15px; }
  .consult-form .inp { height: 54px; }
  .cform-row { grid-template-columns: 1fr; gap: 10px; }
  .dg-tab { padding: 12px 10px 12px 12px; }
  .dg-tab b { font-size: 10px; }
  .dg-tab span { font-size: 12px; }
  .dg-tab::after { display: none; }
  .cform-agree .chk { font-size: 14px; }

  .loc-info dd { font-size: 16px; }
  .map-btn { flex: 1; justify-content: center; padding: 0 14px; }

  .ft { padding: 36px 0 40px; font-size: 13px; }
  .ft-top { flex-direction: column; align-items: flex-start; gap: 12px; }

  .float { display: none; }
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1.15fr;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .mbar a, .mbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
  }
  .mbar button { border-left: 1px solid var(--line); color: var(--accent); }
  .mbar .is-main { background: var(--accent); color: #fff; }

  .modal { padding: 16px; }
  .modal-box { padding: 36px 22px 24px; }
  .dg-title { font-size: 23px; }
  .dr b { font-size: 21px; }
  .pv-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: opacity .6s ease; transform: none; }
  .js [data-reveal], .js .flow li, .js .hero-logo, .js .hero h1 { transition: none; }
  .hero-scroll::after { animation: none; }
}
