@font-face {
  font-family: "Cafe24Ssurround";
  src: url("/fonts/Cafe24Ssurround-v2.0.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Cafe24SsurroundAir";
  src: url("/fonts/Cafe24SsurroundAir-v1.1.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --page-bg: #f4f5f7;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-strong: #eef2f7;
  --text: #111827;
  --text-muted: #4b5563;
  --border: #d4dae4;
  --border-strong: #9ca3af;
  --divider: #e5e7eb;
  --link: #1d4ed8;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  --radius-card: 20px;
  --radius-box: 14px;
  --radius-pill: 999px;
  --font-display:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

html[lang="ko"] {
  --font-display:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI",
    sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI",
    sans-serif;
}

html[lang="ja"] {
  --font-display:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #101317;
    --surface: #171b21;
    --surface-muted: #1d232c;
    --surface-strong: #252d38;
    --text: #f8fafc;
    --text-muted: #c7d0dd;
    --border: #313946;
    --border-strong: #586274;
    --divider: #2b3440;
    --link: #93c5fd;
    --shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--page-bg) 0%, var(--surface-muted) 100%);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: clip;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

.bg-shape,
.grid-overlay {
  display: none;
}

.retro-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.window-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.window-top-bar.mint,
.window-top-bar.yellow,
.window-top-bar.white {
  background: var(--surface-muted);
}

.window-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.browser-dots {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 18px 0;
  backdrop-filter: blur(12px);
}

.site-header-inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.logo {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-link,
.pill-link,
.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-link:hover,
.pill-link:hover,
.meta-chip:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.nav-link[aria-current="page"],
.pill-link[aria-current="page"] {
  background: var(--surface-strong);
  border-color: var(--border-strong);
}

.page-shell {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.doc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.hero-copy,
.doc-panel-body,
.footer-body {
  padding: 28px;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.meta-row,
.locale-switch,
.cta-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.locale-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-window {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-window .window-copy {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.hero-window h2,
.panel-title,
.footer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero-window p,
.doc-panel-body p,
.footer-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
  font-weight: 400;
}

.window-list,
.bullet-list,
.check-list {
  margin: 0;
  padding-left: 1.2rem;
}

.window-list li,
.bullet-list li,
.check-list li {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 400;
}

.window-list li:first-child,
.bullet-list li:first-child,
.check-list li:first-child {
  margin-top: 0;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.doc-panel {
  height: 100%;
}

.doc-panel-body {
  display: grid;
  gap: 14px;
}

.section-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-title {
  font-size: 1.34rem;
}

.panel-subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

th {
  width: 32%;
  color: var(--text);
  font-weight: 600;
  background: var(--surface-muted);
}

td {
  color: var(--text-muted);
  font-weight: 400;
}

tbody tr:last-child th,
tbody tr:last-child td,
thead tr:last-child th,
thead tr:last-child td {
  border-bottom: none;
}

.callout,
.split-item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
  background: var(--surface-muted);
}

.callout strong,
.split-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}

.footer-shell {
  margin-top: 20px;
}

.footer-body {
  display: grid;
  gap: 12px;
}

.fine-print,
.section-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.split-list {
  display: grid;
  gap: 12px;
}

.doc-grid .span-2 {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .site-header {
    padding-top: 16px;
  }

  .nav-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-group {
    justify-content: flex-start;
  }

  .doc-hero,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-grid .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 18px;
  }

  .hero-copy,
  .doc-panel-body,
  .footer-body {
    padding: 22px;
  }

  .hero-window .window-copy {
    padding: 22px;
  }

  .nav-link,
  .pill-link,
  .meta-chip {
    width: 100%;
    justify-content: center;
  }

  .window-top-bar {
    padding: 14px 16px;
  }

  th,
  td {
    font-size: 0.9rem;
  }
}
