:root {
  --primary: #2c3e50;
  --accent: #6c5ce7;
  --border: #dee2e6;
  --bg-light: #f8f9fa;
}

/* 1. ¸ðµç ¿ä¼ÒÀÇ Å©±â °è»êÀ» 'Å×µÎ¸® Æ÷ÇÔ'À¸·Î °­Á¦ ÅëÀÏ (°¡Àå Áß¿ä) */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* ¸ð¹ÙÀÏ ÅÍÄ¡ ÇÏÀÌ¶óÀÌÆ® Á¦°Å */
}

/* 2. °¡·Î ½ºÅ©·Ñ ¿øÃµ Â÷´Ü */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important; /* °¡·Î ½ºÅ©·Ñ Àý´ë ±ÝÁö */
  overflow-y: auto;
  background-color: var(--bg-light);
  font-family: "Pretendard", sans-serif;
}

.app-container {
  display: block;
  width: 100%;
  max-width: 100%; /* ºÎ¸ð¸¦ ³Ñ¾î°¡Áö ¾Ê°Ô Á¦ÇÑ */
  min-height: 100vh;
  overflow-x: hidden; /* ¿©±â¼­µµ °¡·Î ³ÑÄ§ ¹æÁö */
}

.main-content {
  width: 100%;
  max-width: 100%;
  padding-bottom: 0;
}

/* »ó´Ü ¸Þ´º¹Ù */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  width: 100%; /* È­¸é ²Ë Â÷°Ô */
  overflow-x: auto; /* ¸Þ´º°¡ ¸¹À¸¸é ¸Þ´º¸¸ ½ºÅ©·Ñ µÇ°Ô */
  white-space: nowrap;
  /* ½ºÅ©·Ñ¹Ù ¼û±â±â (Å©·Ò, »çÆÄ¸® µî) */
  scrollbar-width: none; 
  -ms-overflow-style: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: 1;
  padding: 14px 0; /* ÁÂ¿ì ÆÐµùÀ» ÁÙÀÌ°í flex·Î °ø°£ ºÐ¹è */
  cursor: pointer;
  color: #7f8c8d;
  font-size: 14px;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  min-width: 120px; /* ¸Þ´º ÃÖ¼Ò ³Êºñ È®º¸ */
}

.nav-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: bold;
  background: rgba(108, 92, 231, 0.05);
}

/* ÄÜÅÙÃ÷ ¿µ¿ª */
.content-area {
  width: 100%;
  padding: 20px 16px 150px 16px; /* ÁÂ¿ì ¿©¹éÀ» Á¶±Ý ÁÙ¿©¼­ ¾ÈÀüÇÏ°Ô È®º¸ (20px -> 16px) */
  margin: 0 auto;
}

.main-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.main-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.info-box {
  padding: 12px 15px;
  background: rgba(52, 152, 219, 0.08);
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #2c3e50;
  line-height: 1.5;
}
.info-box strong { color: #2980b9; }

.section-title {
  display: flex;
  align-items: center;
  margin: 30px 0 12px 0;
  color: #7f8c8d;
  font-size: 1rem;
  font-weight: bold;
}
.section-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 16px;
  background: var(--accent);
  margin-right: 8px;
  border-radius: 2px;
}

/* ±×¸®µå ¼³Á¤ ¼öÁ¤ */
.region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ¸ð¹ÙÀÏ 2¿­ */
  gap: 10px; /* ¹öÆ° »çÀÌ °£°Ý */
  width: 100%;
}

/* ÅÂºí¸´ ÀÌ»óÀÏ ¶§ 3¿­ ÀÌ»ó */
@media (min-width: 600px) {
  .region-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

.region-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px 5px; /* ³»ºÎ ÆÐµù ÁÂ¿ì¸¦ ÁÙÀÓ */
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  min-height: 70px;
  width: 100%; /* ºÎ¸ð ±×¸®µå Ä­¿¡ ²Ë Â÷°Ô */
}

.region-name {
  font-weight: bold;
  font-size: 0.95rem; /* ±ÛÀÚ Å©±â ¾à°£ Á¶Á¤ */
  margin-bottom: 4px;
  color: #2c3e50;
  text-align: center;
  word-break: keep-all; /* ´Ü¾î ´ÜÀ§·Î ÁÙ¹Ù²Þ */
  line-height: 1.2;
}

.region-desc {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
}