@charset "UTF-8";

/* Reset & 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  padding: 20px;
}

/* 전체 컨테이너 */
.seo-demo {
  max-width: 1500px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 헤더 */
.demo-header {
  text-align: center;
  margin-bottom: 40px;
}
.demo-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.demo-header .demo-sub {
  font-size: 15px;
  color: #666;
}

/* 리스트 */
.demo-list {
  list-style: none;
  counter-reset: section;
}
.demo-item {
  margin-bottom: 50px;
}
.demo-title {
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-title .num {
  font-weight: 700;
  color: #0066cc;
}

/* 이미지 */
.demo-figure {
  margin: 0;
}
.demo-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid #eee;
  border-radius: 6px;
  display: block;
  margin-bottom: 8px;
}
.demo-caption {
  font-size: 14px;
  color: #888;
  text-align: center;
}

/* 푸터 */
.demo-footer {
  margin-top: 40px;
  text-align: center;
  color: #aaa;
  font-size: 13px;
}

/* ───────── Tab menu ───────── */
.demo-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* ← 140px → 180px 으로 확대 */
  gap: 12px;                       /* 간격도 살짝 넓힘 */
  margin: 0 0 28px;
  position: sticky;
  top: 10px;
  z-index: 5;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #eee;
}
.demo-tab {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 14px 16px;              /* 패딩 늘려서 버튼 크기 ↑ */
  border-radius: 12px;
  font-size: 15px;                 /* 글자도 약간 크게 */
  cursor: pointer;
  text-align: left;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.demo-tab .num {
  font-weight: 700;
  margin-right: 8px;
  color: #0066cc;
}
.demo-tab:hover {
  background: #eef6ff;
  border-color: #cfe3ff;
}
.demo-tab.is-active,
.demo-tab[aria-selected="true"] {
  background: #e8f2ff;
  border-color: #8dbbff;
  box-shadow: 0 0 0 2px rgba(0,102,204,.08) inset;
}

/* 패널 */
.demo-panel { display: none; }
.demo-panel.is-active { display: block; }


/* 반응형 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
    padding: 10px;
  }
  .seo-demo {
    padding: 20px;
  }
  .demo-title {
    font-size: 18px;
  }
  .demo-tabs {
    position: static;
    grid-template-columns: repeat(1, 1fr); /* 모바일은 한 줄씩 */
  }
}