/* IBEO 안내 사이트 — 앱 아트 A(흰 종이·먹색·세리프 제목·머리카락 같은 선·클라렛 포인트)
   글꼴은 내려받지 않는다: 기기에 있는 글꼴만 쓴다(외부 요청 0). */

:root {
  --paper: #FFFFFF;
  --warm: #FAFAF8;
  --mist: #F1F2F4;
  --ink: #0E0E10;
  --graphite: #686A70;
  --hairline: #DCDDE1;
  --line: #E6E6E9;
  --claret: #8E1F33;
  --claret-soft: #F6ECEE;
  --on-ink: #FFFFFF;
  --badge-bg: rgba(255, 255, 255, 0.92);
  --badge-ink: #3F4046;

  --f-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --f-serif: "Noto Serif KR", "Nanum Myeongjo", AppleMyungjo, Batang, "Times New Roman", serif;
  --f-display: Didot, "Bodoni 72", "Bodoni Moda", "Noto Serif Display", "Times New Roman", serif;

  --gutter: 16px;
  --max: 68rem;
  --prose: 46rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C0C0D;
    --warm: #111113;
    --mist: #161719;
    --ink: #F2F2F0;
    --graphite: #A2A4AA;
    --hairline: #2C2D31;
    --line: #232428;
    --claret: #CF5A6E;
    --claret-soft: #241418;
    --on-ink: #0C0C0D;
  }
}

:lang(ja) {
  --f-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  --f-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

:lang(ko) { word-break: keep-all; }
/* 한국어 문서 안의 일본어 문단(lang="ja")까지 keep-all 이 상속되면 띄어쓰기 없는 일본어가 줄을 바꾸지 못해 가로로 넘친다 */
:lang(ja) { word-break: normal; line-break: strict; }
/* 일본어 제목은 단어(문절) 단위로 줄을 바꾼다(크롬 119 이상. 못 쓰는 브라우저는 위의 normal) */
:is(h1, h2, h3, .lead, .status, .taglines p):lang(ja) { word-break: auto-phrase; }
/* 가타카나 긴 낱말(プライバシーポリシー 등)이 320px 폭에서도 한 줄에 들어가게 일본어 큰 제목은 조금 작게 시작 */
h1:lang(ja) { font-size: clamp(1.6rem, 6.2vw, 3.4rem); }

img { display: block; max-width: 100%; height: auto; }

/* 본문 링크는 글자색이 본문과 같으므로, 밑줄을 배경과 확실히 구별되는 색(대비 3:1 이상)으로 둔다 */
a { color: inherit; text-decoration-color: var(--graphite); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .table-wrap:focus-visible {
  outline: 2px solid var(--claret);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ───────── 건너뛰기 링크 ───────── */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* ───────── 머리 ───────── */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-top: 14px;
  padding-bottom: 10px;
}
.wordmark {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  padding: 6px 0;
}
.wordmark small {
  font-family: var(--f-serif);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
  margin-left: 0.4em;
}
.lang-switch {
  font-size: 0.875rem;
  color: var(--graphite);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 12px;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }
.site-nav { order: 3; width: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  font-size: 0.9375rem;
}
.site-nav a { display: inline-block; padding: 6px 0; color: var(--graphite); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--claret); }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .site-header .wrap { flex-wrap: nowrap; padding-top: 18px; padding-bottom: 14px; }
}

/* ───────── 공통 글자 ───────── */
h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6.2vw, 3.4rem); line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); margin: 2.2em 0 0.6em; }
h3 { font-size: 1.125rem; margin: 1.8em 0 0.4em; }
p { margin: 0 0 1em; }
.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--graphite);
  margin: 0 0 14px;
}
.lead { font-size: 1.125rem; color: var(--ink); max-width: 36em; }
.muted { color: var(--graphite); }
.small { font-size: 0.875rem; }

/* ───────── 첫 화면 ───────── */
.hero { padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) {
  .hero { padding: 72px 0 80px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 14px;
  margin: 0 0 18px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--claret); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 24px; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.btn:hover { opacity: 0.88; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.note {
  font-size: 0.9375rem;
  color: var(--graphite);
  border-left: 2px solid var(--claret);
  padding-left: 12px;
  margin-top: 20px;
}

/* ───────── 사진 ───────── */
.photo { position: relative; margin: 0; }
.photo img { width: 100%; background: var(--mist); border-radius: 3px; }
.photo figcaption { font-size: 0.8125rem; color: var(--graphite); margin-top: 8px; line-height: 1.5; }
.ai-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.6;
}
.hero .photo { max-width: 360px; justify-self: center; width: 100%; }

/* ───────── 구역 ───────── */
.section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--warm); }
.section h2 { margin-top: 0; }
@media (min-width: 768px) { .section { padding: 72px 0; } }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps > li { counter-increment: step; }
.steps h3 { margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; }
.steps h3::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--claret);
}
.steps .photo { margin-bottom: 14px; max-width: 320px; }
.step-plain { border-top: 1px solid var(--ink); padding-top: 14px; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse > :first-child { order: 2; } }
.split .photo.square { max-width: 320px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 22px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 10px; height: 1px; background: var(--claret); }

/* ───────── 문서(약관·방침) ───────── */
.doc { padding: 36px 0 64px; }
.doc .wrap > * { max-width: var(--prose); }
.doc .wrap > .table-wrap, .doc .wrap > .wide { max-width: 60rem; }
.doc h2 { border-top: 1px solid var(--line); padding-top: 1.1em; }
.doc h1 + .meta { margin-top: -0.2em; }
.meta { font-size: 0.875rem; color: var(--graphite); }
.meta dt { display: inline; }
.meta dd { display: inline; margin: 0 1.2em 0 0.3em; }
/* 날짜는 한 덩어리로(예: '2026年10月21|日' 처럼 끝 글자만 넘어가지 않게) */
time { white-space: nowrap; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin: 0.25em 0; }
.doc li > ul, .doc li > ol { margin: 0.3em 0 0.4em; }
.callout {
  background: var(--mist);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 1.2em 0;
}
.callout > :last-child { margin-bottom: 0; }

.toc { background: var(--warm); border: 1px solid var(--line); border-radius: 4px; padding: 14px 18px; margin: 1.4em 0 0; }
.toc h2 { border: 0; padding: 0; margin: 0 0 6px; font-size: 1rem; font-family: var(--f-sans); font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 0.9375rem; }
@media (min-width: 768px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { break-inside: avoid; }

.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; border-bottom: 1px solid var(--ink); white-space: nowrap; }
tbody th { font-weight: 600; min-width: 7.5em; }
td + td, th + td { padding-left: 4px; }
@media (max-width: 560px) { table { font-size: 0.875rem; } th, td { padding-right: 8px; } }

/* 자주 묻는 질문 */
.faq { border-top: 1px solid var(--ink); margin-top: 1em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-family: var(--f-serif);
  font-size: 1.0625rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: var(--f-sans);
  font-size: 1.25rem;
  color: var(--graphite);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 18px; }
.faq .answer > :last-child { margin-bottom: 0; }

.contact-card {
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 18px 20px;
  margin: 1.2em 0 1.6em;
}
.contact-card p:last-child { margin-bottom: 0; }
.mail { font-size: 1.125rem; font-weight: 600; }

/* ───────── 언어 고르기(루트) ───────── */
.chooser { min-height: 70vh; display: grid; place-items: center; padding: 56px 0; text-align: center; }
.chooser .big-mark { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.4rem, 15vw, 6.5rem); letter-spacing: 0.12em; line-height: 1; margin: 0 0 18px; }
.chooser .taglines p { margin: 0.2em 0; font-family: var(--f-serif); font-size: 1.125rem; }
.choices { list-style: none; padding: 0; margin: 32px auto 0; display: grid; gap: 12px; max-width: 22rem; }
.choices a {
  display: block;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 1.0625rem;
}
.choices a:hover { background: var(--ink); color: var(--paper); }
.choices .sub { display: block; font-size: 0.8125rem; color: var(--graphite); }
.choices a:hover .sub { color: inherit; opacity: 0.8; }

/* ───────── 바닥 ───────── */
.site-footer { background: var(--mist); color: var(--graphite); font-size: 0.875rem; line-height: 1.7; padding: 36px 0 44px; }
.site-footer .links { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer .links a { color: var(--ink); text-decoration: none; }
.site-footer .links a:hover { text-decoration: underline; }
.site-footer .links .strong a { font-weight: 700; }
.site-footer dl { margin: 0 0 14px; }
.site-footer dt { display: inline; white-space: nowrap; }
.site-footer dt::after { content: " "; }
.site-footer dd { display: inline; margin: 0 14px 0 0; }
/* 좁은 화면: 항목(이름 + 값)마다 한 줄 */
@media (max-width: 767px) {
  .site-footer dd { margin: 0; }
  .site-footer dd::after { content: ""; display: block; }
}
.site-footer p { margin: 0 0 6px; }

.center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
