:root {
  --navy: #14233c;
  --blue: #6c8eb5;
  --ivory: #f7f3ea;
  --gold: #b8935a;
  --white: #ffffff;
  --muted: #4a5568;
  --line: #e4ddcd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
section { padding: 80px 0; scroll-margin-top: 90px; }
section.white { background: var(--white); }
.eyebrow { color: var(--navy); font-weight: 600; border-left: 4px solid var(--gold); padding-left: 12px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40em; }
.small { font-size: 0.9rem; color: var(--muted); }

header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 14px 0; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand strong { font-size: 1.15rem; }
.brand span { font-size: 0.85rem; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
nav a { text-decoration: none; font-weight: 500; padding: 4px 0; }
nav a:hover, nav a:focus-visible { box-shadow: 0 2px 0 var(--gold); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }
.btn {
  display: inline-block; border: 2px solid var(--navy); background: var(--navy); color: var(--ivory);
  border-radius: 8px; padding: 13px 24px; font: inherit; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: #22385c; border-color: #22385c; }
.btn.outline { background: transparent; color: var(--navy); }
.btn.outline:hover { background: var(--white); }
.btn.light { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }
.btn.outline-light { background: transparent; border-color: var(--ivory); color: var(--ivory); }
.btn:disabled { opacity: 0.5; cursor: wait; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero { padding: 64px 0 0; }
.hero-text { padding-bottom: 64px; }
.hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.photo { align-self: end; justify-self: center; background: var(--white); border-radius: 24px 24px 0 0; border: 1px solid var(--line); border-bottom: 6px solid var(--gold); padding: 24px 12px 0; }
.photo img { width: min(360px, 100%); height: auto; }
.badge { text-align: center; font-weight: 600; font-size: 0.95rem; padding: 10px 0; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 32px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
section.white .card { background: var(--ivory); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.card ul { margin: 0 0 20px; padding-left: 20px; }
.card h4 { margin: 8px 0 6px; font-size: 0.95rem; }
.card .btn { margin-top: auto; }
.cred { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 32px; }
.cred li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.band { background: #dfe7f1; padding: 56px 0; text-align: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.steps { padding-left: 20px; max-width: 44em; }
.steps li { margin-bottom: 8px; }

.picked { font-weight: 600; }
.notice { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 16px 20px; max-width: 44em; }
.notice.ok { border-left-color: #2f7d55; }
.notice.warn { border-left-color: #b4532a; }
.calendly { display: block; width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 16px; }

form { max-width: 720px; margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
label em { font-style: normal; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--navy); background: var(--white); border: 1px solid #b9b2a2; border-radius: 8px; padding: 11px 12px; width: 100%; }
.full { grid-column: 1 / -1; }
.consent { background: var(--ivory); border-radius: 8px; padding: 16px 20px; font-size: 0.92rem; }
.consent ul { margin: 6px 0 12px; padding-left: 20px; }
.check { flex-direction: row; align-items: center; gap: 10px; }
.check input { width: 20px; height: 20px; }

footer { background: var(--navy); color: var(--ivory); }
.closing { text-align: center; padding: 72px 0 32px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.links a { border: 1px solid var(--blue); border-radius: 999px; padding: 6px 18px; text-decoration: none; font-size: 0.92rem; }
.copy { margin: 24px 0 0; font-size: 0.82rem; opacity: 0.75; }

.trap { position: absolute; left: -9999px; }
.install { margin-top: 32px; }
footer .small.ios { color: var(--ivory); margin: 24px 0 0; }
.admin { padding: 40px 0 64px; max-width: 860px; }
.admin h1 { font-size: 2rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toolbar p { margin: 0 auto 0 0; font-weight: 600; }
.toolbar select { width: auto; }
.tabbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0; border-bottom: 1px solid var(--line); }
.tabbar button, .period button { font: inherit; color: var(--navy); background: transparent; border: 0; padding: 10px 14px; cursor: pointer; }
.tabbar button[aria-selected="true"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--navy); }
.tabbar button:disabled { color: #8a8578; cursor: default; }
.period { display: flex; gap: 8px; margin-bottom: 16px; }
.period button { border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.period button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile, .panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.tile span { display: block; font-size: 0.85rem; color: var(--muted); }
.tile strong { font-size: 2rem; line-height: 1.3; }
figure.panel { margin: 16px 0; }
figcaption, .panel h3 { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
#chart { overflow-x: auto; }
#chart svg { display: block; }
.bar { fill: #2f6db5; }
.grid-line { stroke: #ece8dd; }
.base-line { stroke: #b9b2a2; }
.tick { font-size: 11px; fill: var(--muted); }
.tick.strong { fill: var(--navy); font-weight: 700; }
.hit { fill: transparent; cursor: pointer; }
.hit:hover, .hit:focus { fill: rgba(20, 35, 60, 0.06); outline: none; }
summary { cursor: pointer; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
th:not(:first-child), td:not(:first-child) { text-align: right; padding-left: 12px; font-variant-numeric: tabular-nums; }
.breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.inquiry { margin-top: 20px; }
.inquiry.new { border-top-color: var(--gold); }
.inquiry.done { opacity: 0.7; }
.inquiry dl { display: grid; grid-template-columns: 7em 1fr; gap: 6px 12px; margin: 0 0 20px; }
.inquiry dt { color: var(--muted); }
.inquiry dd { margin: 0; white-space: pre-wrap; }

@media (max-width: 760px) {
  section { padding: 56px 0; scroll-margin-top: 130px; }
  .hero { padding: 40px 0 0; }
  .hero-in { grid-template-columns: 1fr; gap: 8px; }
  .hero-text { padding-bottom: 24px; }
  nav { gap: 4px 16px; font-size: 0.92rem; }
  .actions .btn { width: 100%; }
}
