/* KONTINA — 공통 스타일 (2026-12-04)
   톤: 의료 신뢰감. 흰 바탕, 넓은 여백, 차분한 회색. 브랜드 빨강은 포인트에만 쓴다.
   LINE 버튼만 LINE 브랜드 초록을 쓴다. */

:root {
  --brand: #ff2a0e;          /* 로고 빨강: 포인트·밑줄·숫자에만 */
  --brand-soft: #fff1ee;
  --ink: #1b1d21;            /* 본문 */
  --ink-2: #4a505a;          /* 보조 글 */
  --ink-3: #7b828d;          /* 캡션 */
  --line: #e6e8ec;           /* 구분선 */
  --bg: #ffffff;
  --bg-2: #f6f7f9;           /* 섹션 바탕 */
  --navy: #1f2a3d;           /* 푸터·강조 바탕 */
  --line-green: #06c755;     /* LINE 버튼 */
  --radius: 14px;
  --max: 1080px;
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-ko: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-tc: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ko);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html[lang="ja"] body { font-family: var(--font-ja); word-break: normal; line-break: strict; }
html[lang="zh-Hant"] body { font-family: var(--font-tc); word-break: normal; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand-name { font-weight: 800; letter-spacing: .14em; font-size: 17px; font-family: var(--font-ko); }
.brand-sub { font-size: 12px; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav .btn { margin-left: 6px; }

.lang { display: flex; gap: 2px; font-size: 12px; margin-left: 8px; }
.lang a, .lang span { padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--ink-3); border: 1px solid transparent; }
.lang [aria-current="true"] { color: var(--ink); border-color: var(--line); }

/* 모바일 메뉴: <details class="menu"> */
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel {
  display: none; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px;
  background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
}
.menu-panel a { padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu-panel .btn { margin-top: 12px; justify-content: center; }

@media (max-width: 860px) {
  .nav, .site-header .lang { display: none; }
  .menu { display: block; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { color: #fff; filter: brightness(.95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn .ico { width: 20px; height: 20px; flex: none; }

/* ---------- 섹션 ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--navy); color: #fff; }
.section.dark .lead, .section.dark p { color: #d7dce5; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--brand); margin: 0 0 10px; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 720px; }
.muted { color: var(--ink-3); font-size: 14px; }
.section-head { margin-bottom: 40px; }

/* ---------- 히어로 ---------- */
.hero { padding: 96px 0 80px; background:
  radial-gradient(1200px 400px at 85% -10%, var(--brand-soft), transparent 60%), var(--bg); }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reg-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px;
}
.reg-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

/* 페이지 머리(하위 페이지) */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); }
.breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.breadcrumb a { text-decoration: none; }

/* ---------- 카드·그리드 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .06em; margin-bottom: 12px; display: block; }
.card.flat { background: var(--bg-2); border-color: transparent; }

/* ---------- 단계 ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px 22px 76px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 22px;
  font-weight: 800; color: var(--brand); font-size: 18px; letter-spacing: .04em;
}
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 안내 상자 ---------- */
.notice { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 18px 22px; border-radius: 0 10px 10px 0; }
.notice h3 { font-size: 16px; margin-bottom: 6px; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice.gray { border-left-color: var(--ink-3); background: var(--bg-2); }

/* ---------- 목록·표 ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

table.info { width: 100%; border-collapse: collapse; font-size: 15px; }
table.info th, table.info td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.info th { width: 32%; color: var(--ink-2); font-weight: 600; background: var(--bg-2); }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 22px; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- CTA 띠 ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cfd6e2; margin: 0; }
.qr { width: 128px; height: 128px; background: #fff; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink-3); font-size: 12px; text-align: center; padding: 10px; border: 1px dashed #9aa3b2; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } .qr { display: none; } }

/* ---------- 폼 ---------- */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .consent { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.form .consent input { width: auto; margin-top: 5px; }

/* ---------- 작성 필요 표시(오픈 전 반드시 채울 곳) ---------- */
.todo {
  background: #fff7d6; border: 1px dashed #d4a800; color: #6b5300; padding: 2px 6px; border-radius: 4px;
  font-size: .9em; font-style: normal;
}
.todo-block { background: #fff7d6; border: 1px dashed #d4a800; color: #6b5300; padding: 14px 18px; border-radius: 10px; font-size: 14px; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--navy); color: #c5ccd8; padding: 56px 0 40px; font-size: 14px; margin-top: 0; }
.site-footer a { color: #e7ebf2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand-name { color: #fff; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid #34405a; margin-top: 36px; padding-top: 20px; font-size: 12px; color: #9aa4b5; line-height: 1.8; }

/* 접근성: 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
