/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
  font-size: 16px;
}
body {
  margin: 0;
  color: #111;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}

.code-highlight {
  display: block;
  overflow-x: auto;
  padding: 1.25rem;
  color: #abb2bf;
  background: #282c34;
  border-radius: 3px;
  font-size: 12px !important;
}
.CodeBlock_http_method__qOFLM {
  color: #7fc400;
  margin-right: 0.25rem;
}
.CodeBlock_white__EVMff {
  color: #c3c3c3 !important;
}
.CodeBlock_orange__hDUUw {
  color: #ef6c24 !important;
}
/* ═══════════════════════════════════════════
   SECTION 표시/숨김
═══════════════════════════════════════════ */
.section {
  display: none;
  opacity: 0;
}
.section.active-section {
  display: block;
  animation: fadeInUp 0.25s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HEADER 영역 */
.Header {
  height: 70px;
  width: 100%;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #ccc;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  background: #fff;
}

/* 헤더 왼쪽(로고) */
.header-lastImg {
  justify-self: start;
  display: flex;
  align-items: center;
  height: 100%;
}

.Header img {
  width: 110px;
  height: auto;
  max-height: 55px;
  object-fit: contain;
  display: block;
}

/* 가운데 메뉴(PC) */
.header-ul {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: #111;
  grid-column: 2;
}

.header-ul li {
  display: flex;
}

.header-ul a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.header-ul a:hover {
  background: #f0f2f5;
  cursor: pointer;
}

/* 오른쪽 문의/CTA */
.header-phone {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 3;
}

.header-phone p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

.header-call {
  display: block;
  text-align: center;
  border-right: 1px solid black;
  padding-right: 10px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding-left: 10px;
}
.header-cta:hover {
  opacity: 0.9;
}

.header-cta-img {
  width: 130px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.menu-btn {
  display: none;
  border: none;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  justify-self: center;
  grid-column: 2;
}
.menu-btn:hover {
  background: #f0f2f5;
}
.menu-btn .bar {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 999px;
  display: block;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.mobile-nav.show {
  display: block;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(300px, 85vw);
  background: #fff;
  padding: 16px 14px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}
.mobile-nav.show .mobile-nav-panel {
  transform: translateX(0);
}
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.mobile-nav-close {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  color: #111;
}
.mobile-nav-close:hover {
  background: #f3f4f6;
}
.mobile-nav-list {
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-list a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
}
.mobile-nav-list a:hover {
  background: #f0f2f5;
}

/* ═══════════════════════════════════════════
   모바일 탑 탭 (API Reference — 모바일 전용)
═══════════════════════════════════════════ */
.mobile-api-tabs {
  display: none; /* 데스크탑에서는 숨김 */
}

/* ═══════════════════════════════════════════
   메인 레이아웃 (데스크탑: 사이드바 + 콘텐츠)
═══════════════════════════════════════════ */
.hoho {
  margin-top: 64px;
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
  align-items: flex-start;
}

/* ── 사이드바 ── */
.sidebar {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  background: #f8f9fc;
  border-right: 1px solid #e2e8f0;
  padding: 28px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  padding: 0 20px 16px;
  letter-spacing: 0.1em;
  color: #999;
  text-transform: uppercase;
}
.sidebar-nav a {
  display: block;
  padding: 8px 20px;
  font-size: 13.5px;
  color: #111;
  border-left: 3px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  border-radius: 0 6px 6px 0;
  margin-right: 8px;
}
.sidebar-nav a:hover {
  background: #eef3ff;
  color: #1a6fff;
}
.sidebar-nav a.active {
  background: #e8f0ff;
  border-left-color: #1a6fff;
  color: #1a6fff;
  font-weight: 600;
}

/* ── 메인 콘텐츠 ── */
.main {
  flex: 1;
  min-width: 0;
  padding: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 72px);
  border-left: 1px solid #e2e8f0;
}

/* ── 섹션 ── */
.section {
  margin-bottom: 80px;
}
.section > h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 32px;
  padding-bottom: 0;
  /* border-bottom: 2px solid #111; */
  display: inline-block;
}

/* ── 그룹 ── */
.group {
  margin-bottom: 40px;
  margin-top: 40px;
}
.group:first-child {
  margin-top: 0;
}
.group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.group-header span {
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
}
.group-header .divider {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ── 아코디언 ── */
.iteam {
  background: #fff;
  border: 1px solid #e2e8f0;
  /* border: 1px solid #b2b6bc; */
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.2s;
  /* box-shadow 0.2s; */
}
.iteam:hover {
  border-color: #a8c4ff;
  /* box-shadow: 0 2px 10px rgba(26, 111, 255, 0.08); */
}
.iteam.open {
  border-color: #1a6fff;
  /* box-shadow: 0 2px 12px rgba(26, 111, 255, 0.12); */
}

.iteam-btn {
  width: 100%;
  background: none;
  border: none;
  padding: clamp(16px, 2vw, 20px) 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.iteam-btn h3 {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  transform-origin: center center;
  vertical-align: middle;
  width: 20px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 300;
  color: #999;
  line-height: 1;
}
.arrow::before,
.arrow::after {
  display: none;
}
.iteam.open .arrow {
  color: #1a6fff;
  transform: rotate(180deg);
}
.enter-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding: 0 24px;
}
.enter-content.open {
  max-height: 400px;
  padding: 18px 24px 22px;
  border-top: 1px solid #ddeaff;
  background: #f5f8ff;
}
.enter-content p {
  font-size: clamp(0.875rem, 1.2vw, 0.95rem);
  color: #444;
  line-height: 1.8;
  margin-bottom: 8px;
}
.enter-content p:first-of-type {
  color: #1a1a1a;
  font-weight: 500;
  padding: 10px 0px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 14px;
}
.enter-content p:last-child {
  margin-bottom: 0;
}
.enter-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  margin: 14px 0 8px;
}
.enter-content h4:first-child {
  margin-top: 0;
}
.enter-content a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a6fff;
  border: 1px solid #1a6fff;
  padding: 6px 14px;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}
.enter-content a:hover {
  background: #1a6fff;
  color: #fff;
}
.enter-content a::after {
  content: "↗";
  font-size: 0.8rem;
}

/* 드로어 관련 — 모바일 전용이므로 기본 숨김 */
.sidebar-toggle-btn {
  display: none;
}
.sidebar-drawer {
  display: none;
}
.mobile-content-wrap {
  display: none;
}

/* FOOTER */
.last {
  display: flex;
  width: 100%;
  justify-content: space-around;
  padding: 75px 20px;
  background-color: #f5f5f5;
  box-sizing: border-box;
  align-items: center;
  font-size: 14px;
  margin-top: auto;
  flex-shrink: 0;
}

/* PC: 원래 푸터 요소 표시 */
.footer-pc {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  gap: 40px;
}

.last img {
  width: 230px;
}

.last-font {
  line-height: 20px;
}

.last-link {
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  margin-bottom: 0.5rem;
  gap: 2px;
}
.last-link li {
  padding: 0 10px;
  border-right: 1px solid #ccc;
}
.last-link li:first-child {
  padding-left: 0;
}
.last-link li:last-child {
  border-right: none;
}
.last-link a {
  color: #111;
  text-decoration: none;
  font-size: 14px;
}
.last-link a:hover {
  text-decoration: underline;
}

.info-wrap {
  display: flex;
  gap: 43px;
  flex-wrap: wrap;
}
.info-wrap ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #111;
  font-size: 13px;
}


.last-p {
  margin-top: 15px;
  font-size: 14px;
  color: #111;
}

/* 모바일 아코디언 요소 — PC에서는 숨김 */
.footer-inner {
  display: none;
}
@media (max-width: 960px) {
    .header-call {
    display: none;
  }
  .header-cta {
    height: 44px;
    padding-left: 0;
  }
  .header-cta-img {
    width: 100px;
    height: 44px;
  }
  .sidebar {
    width: 180px;
    min-width: 180px;
  }
  .main {
    padding: 24px 24px;
  }
}

@media (max-width: 768px) {
  /* 헤더 */
  .Header {
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
    height: 56px;
  }
  .header-ul {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
    justify-self: center;
  }
  .header-cta-img {
    width: 80px;
    height: 36px;
    display: block;
  }
  .header-call {
    display: none;
  }

  /* 레이아웃 전환: 사이드바 숨기고 탭 방식으로 */
  .sidebar {
    display: none !important;
  }
  .hoho {
    flex-direction: column;
    align-items: stretch;
    margin-top: 56px;
  }

  /* ★ 모바일 API Reference 탭 바 ★ */
  .mobile-api-tabs {
    display: block;
    position: sticky;
    top: 40px;
    z-index: 100;
    background: #fff;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .mobile-api-tabs-label {
    padding: 20px 16px 0;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mobile-api-tabs-scroll {
    display: flex;
    overflow-x: auto;
    padding: 8px 12px 10px;
    gap: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mobile-api-tabs-scroll::-webkit-scrollbar {
    display: none;
  }
  .mobile-api-tab {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f0f2f5;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
      background 0.2s,
      color 0.2s,
      border-color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
  }
  .mobile-api-tab:hover {
    background: #e0eeff;
    color: #1a8cff;
  }
  .mobile-api-tab.active {
    background: #1a8cff;
    color: #fff;
    border-color: #1a8cff;
    font-weight: 600;
  }

  /* 메인 콘텐츠 */
  .main {
    padding: 20px 14px;
    border-left: none;
  }
  .section > h1 {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }
  .iteam-btn h3 {
    font-size: clamp(0.8rem, 3.2vw, 0.9rem);
  }
  .enter-content p {
    font-size: clamp(0.7rem, 2.8vw, 0.85rem);
  }

  /* 푸터 — 모바일 아코디언 전환 */
  .last {
    display: block;
    padding: 32px 20px;
    background-color: #f5f5f7;
    border-top: 1px solid #d2d2d7;
  }

  /* PC 전용 요소 숨기기 */
  .footer-pc {
    display: none;
  }

  /* 모바일 아코디언 표시 */
  .footer-inner {
    display: block;
    padding: 0 20px;
  }

  .footer-accordion-wrap {
    display: flex;
    flex-direction: column;
  }

  .footer-group {
    border-bottom: 1px solid #d2d2d7;
  }
  .footer-group:first-child {
    border-top: 1px solid #d2d2d7;
  }
  .last img {
    width: 130px;
  }
  .footer-group-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: left;
  }

  .footer-arrow {
    font-size: 12px;
    color: #6e6e73;
    transition: transform 0.25s ease;
    display: inline-block;
  }
  .footer-group.open .footer-arrow {
    transform: rotate(180deg);
  }

  .footer-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .footer-group.open .footer-group-list {
    max-height: 300px;
  }
  .footer-group-list li {
    padding: 10px 0;
    font-size: 13px;
    color: #6e6e73;
  }
  .footer-group-list a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 13px;
  }
  .footer-group-list a:hover {
    color: #1d1d1f;
  }

  .footer-bottom {
    border-top: 1px solid #d2d2d7;
    padding: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .footer-bottom p {
    font-size: 11px;
    color: #6e6e73;
    margin: 0;
    line-height: 1.6;
  }
  .footer-copy {
    margin-top: 6px !important;
    color: #1d1d1f !important;
    font-weight: 500;
  }


  
  .Header {
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
    height: 56px;
  }
  .header-ul {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
    justify-self: center;
  }
  .header-cta-img {
    width: 80px;
    height: 36px;
    display: block;
  }
  .header-call {
    display: none;
  }
}


@media (max-width: 480px) {
  .code-highlight {
    font-size: 6px !important;
    padding: 0.75rem;
  }
  .enter-content.open {
    padding: 14px 12px 16px;
  }
  .Header {
    height: 52px;
    padding: 0 12px;
  }
  .Header img {
    width: 90px;
  }
  .mobile-api-tab {
    font-size: 12px;
    padding: 6px 12px;
  }
  .main {
    padding: 16px 12px;
  }
  .group-header span {
    font-size: 11px;
  }
  .iteam-btn {
    padding: 10px 14px;
  }

  body {
    word-break: keep-all;  
  }
}

@media (max-width: 360px) {
  html {
    font-size: 14px;
  }
  .Header {
    height: 48px;
    padding: 0 10px;
  }
  .Header img {
    width: 78px;
  }
  .mobile-api-tab {
    font-size: 11px;
    padding: 5px 10px;
  } 
}


@media (max-width: 600px) {
  .page {
    padding-top: 56px;
  }
  .Header {
    grid-template-columns: 1fr auto 1fr;
    padding: 0 14px;
    height: 56px;
  }
  .header-ul {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
    justify-self: center;
  }
  .header-cta-img {
    width: 80px;
    height: 36px;
  }
  .header-call {
    display: none;
  }
}

@media (min-width: 601px) and (max-width: 905px) {
  .Header {
    grid-template-columns: auto 1fr auto auto;
  }
  .header-ul {
    display: none !important;
  }
  .menu-btn {
    display: flex !important;
    justify-self: center;
  }
  .header-call {
    display: none;
  }
}

@media (max-width: 1024px) {
  .header-call {
    display: none;
  }
}

.scroll-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 22px;
  border: 1.5px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.scroll-top-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-2px);
}
.scroll-top-btn--mobile {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
  font-size: 14px;
}