/* 색과 모양의 기준은 docs/design.md 에 있다. */
:root {
    color-scheme: light;
    --bg: #FBF8F3;
    --surface: #FFFFFF;
    --surface-soft: #F4EEE6;
    --border: #ECE5DC;
    --text-primary: #2B2723;
    --text-secondary: #8C837B;
    --text-tertiary: #BCB3AA;
    --accent: #E5856A;
    --accent-ink: #BC5C42;
    --accent-soft: #FBEAE3;
    --shadow-float: 0 6px 24px rgb(43 39 35 / 0.13);
}

body { font-family: 'Pretendard', sans-serif; margin: 0; line-height: 1.6; color: var(--text-primary); background: var(--bg); word-break: keep-all; }

/* 내용이 짧아도 푸터가 화면 맨 아래에 붙게 한다. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }

/* 상단 내비게이션 */
header { position: sticky; top: 0; z-index: 100; }
.nav { display: flex; align-items: center; gap: 24px; padding: 20px 50px; border-bottom: 1px solid var(--border); background: var(--bg); }
.logo { margin-right: auto; font-size: 24px; font-weight: 800; color: var(--text-primary); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-links a,
.nav-menu > button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 500; color: var(--text-primary); text-decoration: none; cursor: pointer; }
.nav-links a:hover,
.nav-menu > button:hover { background: var(--surface-soft); }
.nav-links .is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

.nav-menu { position: relative; }
.nav-menu svg { width: 16px; height: 16px; transition: transform 0.15s; }
.nav-menu > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu ul { position: absolute; top: calc(100% + 8px); left: 0; min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-float); }
.nav-menu ul[hidden] { display: none; }
.nav-menu ul a { display: flex; padding: 10px 14px; border-radius: 12px; font-weight: 600; }

.lang { display: flex; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.lang a { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-secondary); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); }

/* 홈 */
.hero { padding: 120px 20px; text-align: center; }
.hero h1 { font-size: 56px; line-height: 1.25; margin: 0 0 20px; letter-spacing: -2px; text-wrap: balance; }
.hero p { font-size: 20px; color: var(--text-secondary); max-width: 720px; margin: 0 auto 40px; text-wrap: pretty; }
.btn { display: inline-block; padding: 15px 30px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 5px; font-weight: bold; }

/* 회사 소개, 서비스, 공지사항 */
.container { width: 100%; max-width: 940px; margin: 0 auto; padding: 80px 20px; box-sizing: border-box; }

.about { line-height: 1.7; }
.about h1 { display: inline-block; font-size: 36px; margin: 0 0 40px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.statement { font-size: 28px; font-weight: 800; line-height: 1.4; letter-spacing: -0.5px; margin: 0 0 16px; }
.lead { font-size: 18px; margin: 0; }

/* 연혁. 새 항목은 목록 맨 위에 추가한다. */
.history { margin-top: 64px; }
.history h2 { font-size: 22px; margin: 0 0 24px; }
.timeline { margin: 0; padding: 0 0 0 24px; list-style: none; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding-bottom: 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline time { display: block; font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.timeline p { margin: 2px 0 0; font-size: 17px; }

.service-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.service-head h1 { margin: 0; font-size: 36px; }
.tagline { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--accent-ink); }
.service p { font-size: 18px; }
/* 링크 목록 (ListRow) */
/* 문서 목록이라 모서리를 각지게 둔다. docs/design.md '원본과 다른 점' 참고. */
.link-list { display: flex; flex-direction: column; margin-top: 32px; background: var(--surface); border: 1px solid var(--border); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--text-primary); text-decoration: none; }
.link-list a + a { border-top: 1px solid var(--border); }
.link-list a:hover { background: var(--surface-soft); }
.link-list svg { flex: none; width: 18px; height: 18px; color: var(--text-tertiary); }

/* 안내·정책 문서 */
.doc h1 { font-size: 36px; margin: 0 0 12px; }
.doc .doc-lead { font-size: 18px; margin: 0 0 40px; }
.doc .doc-meta { margin: 0 0 40px; font-size: 14px; color: var(--text-secondary); }
.doc h2 { font-size: 20px; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p,
.doc li { font-size: 16px; line-height: 1.75; }
.doc ul,
.doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc a { color: var(--accent-ink); }
.doc .link-list a { color: var(--text-primary); }
.doc .btn { color: #fff; }
.doc .link-list { margin-top: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.doc th,
.doc td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { background: var(--surface-soft); }

.callout { margin: 0 0 40px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.callout h2 { margin-top: 0; }
.callout ol { margin-bottom: 0; }

.chip { padding: 4px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
/* 보조 링크 (Chip) */
.sub-links { margin-top: 24px; }
a.chip { display: inline-flex; align-items: center; gap: 2px; padding: 6px 10px 6px 14px; font-size: 14px; text-decoration: none; }
a.chip:hover { background: var(--surface-soft); color: var(--text-primary); }
a.chip svg { width: 16px; height: 16px; }

.notice h1 { margin: 0 0 40px; padding-left: 15px; border-left: 5px solid var(--accent); }
.notice-info { background: var(--surface-soft); padding: 20px; border-radius: 8px; margin-bottom: 30px; font-size: 14px; }
.notice table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.notice th,
.notice td { border-bottom: 1px solid var(--border); padding: 15px; text-align: left; }
.notice th { background: var(--surface-soft); font-size: 14px; }
.notice .col-num { width: 10%; }
.notice .col-date { width: 20%; }
.notice .empty-msg { text-align: center; padding: 50px; color: var(--text-secondary); }

/* 하단 */
footer { background: var(--surface-soft); color: var(--text-secondary); border-top: 1px solid var(--border); padding: 60px 20px; font-size: 14px; margin-top: 100px; }
footer strong { color: var(--text-primary); }
.footer-inner { max-width: 1000px; margin: 0 auto; }

@media (max-width: 720px) {
    .nav { flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; }
    .logo { font-size: 20px; }
    .nav-links { order: 3; width: 100%; }
    .nav-links a,
    .nav-menu > button { padding: 6px 12px; font-size: 15px; }

    .hero { padding: 80px 20px; }
    .hero h1 { font-size: 40px; letter-spacing: -1.4px; }
    .hero p { font-size: 17px; }

    .container { padding: 56px 20px; }
    .about h1,
    .service-head h1,
    .doc h1 { font-size: 28px; }
    .doc table { display: block; overflow-x: auto; }
    .statement { font-size: 22px; }
    .lead { font-size: 17px; }
}
