:root {
  --primary: #3182f6;
  --primary-dark: #2466c7;
  --secondary: #f2f4f6;
  --bg: var(--secondary);
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #e5e7eb;
  --chip: #eff4ff;
  --font-base: 16px;
  --step-gap: 60px;
  --step-arrow-size: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", "Public Sans", sans-serif;
  font-size: var(--font-base);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #eef1f5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  height: 28px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--secondary);
}

.tab {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: var(--font-base);
  color: var(--muted);
  font-weight: 600;
}

.tab.active {
  background: var(--primary);
  color: #fff;
}

.main {
  flex: 1;
  padding: 28px 0 56px;
}

.card {
  background: var(--surface);
  border: 1px solid #edf0f4;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 20px;
}

.card + .card,
.section + .section {
  margin-top: 18px;
}

.hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
}

.video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  width: 100%;
  padding-top: 56.25%;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.doc-list {
  display: grid;
  gap: 10px;
}

.doc-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.doc-item p {
  margin: 0;
  font-size: var(--font-base);
  flex: 1;
  min-width: 0;
}

.doc-item form {
  display: flex;
}

.btn {
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--font-base);
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-cta {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
}

.caption {
  margin: 0;
  font-size: var(--font-base);
  color: #6b7280;
}

.caption-strong {
  text-align: center;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.box p,
.box li {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-base);
}

.box ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.notice-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--font-base);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px;
  font-size: var(--font-base);
  text-align: left;
  vertical-align: top;
}

.data-table tr:last-child td,
.data-table tr:last-child th {
  border-bottom: 0;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table th {
  width: 150px;
  background: #f8fafc;
}

.data-table thead th {
  background: #f8fafc;
  text-align: center;
}

.data-table thead th.rowspan-middle {
  vertical-align: middle;
}

.status-head,
.status-cell {
  text-align: center !important;
  vertical-align: middle !important;
}

.no-head,
.no-cell {
  text-align: center !important;
  vertical-align: middle !important;
}

.no-cell {
  font-weight: 700;
}

.required-text {
  color: var(--primary);
  font-weight: 700;
}

.normal-text {
  color: var(--muted);
  font-weight: 500;
}


.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.step {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  position: relative;
}

.step strong {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.step:not(:last-child) {
  margin-bottom: var(--step-gap);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc((var(--step-gap) / -2) - (var(--step-arrow-size) / 2));
  width: var(--step-arrow-size);
  height: var(--step-arrow-size);
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #edf0f4;
  box-shadow: none;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  bottom: calc((var(--step-gap) / -2) - 4px);
  width: 8px;
  height: 8px;
  border-right: 2px solid #7f8792;
  border-bottom: 2px solid #7f8792;
  z-index: 1;
}

.asterisk {
  color: #dc2626;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 640px;
}

.contact .box p:first-child {
  margin-bottom: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 26px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
}

.copy {
  margin: 0;
  text-align: right;
  font-size: var(--font-base);
  color: #9ca3af;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .card {
    padding: 24px;
  }

  .doc-item {
    padding: 14px;
  }
}

@media (max-width: 768px) {
  .tab { padding: 8px 10px; }

  .doc-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .doc-item form {
    width: 100%;
  }

  .data-table {
    min-width: 460px;
  }

  .support-section .box {
    padding: 12px;
  }

  .support-section .box h3 {
    font-size: 16px;
  }

  .support-section .box ul,
  .support-section .notice-list {
    gap: 5px;
  }

  .support-section .data-table th,
  .support-section .data-table td {
    padding: 8px;
  }

  .stack-table {
    min-width: 0;
    border: 0;
    margin-top: 12px;
  }

  .stack-table thead {
    display: none;
  }

  .stack-table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
  }

  .stack-table th,
  .stack-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
  }

  .stack-table tr > *:last-child {
    border-bottom: 0;
  }

  .stack-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #334155;
    flex: 0 0 44%;
    max-width: 44%;
  }

  .stack-table td > * {
    flex: 1;
  }

  .apply-table {
    min-width: 720px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy {
    text-align: left;
  }
}
