:root{--build-id:"0c73f02f-e6b4-4f44-806d-1a856ad779c7";}
/* ====================================
   테포라나71 - 일본 여행 정보 사이트
   변수: L19, C33, T22, B17, N01, K17, S01, H17, F1, CS17
   ==================================== */

/* ========== 1. CSS Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0em;
  color: #1e293b;
  background: #f8fafc;
}

/* ========== 2. 색상 변수 (C33) ========== */
:root {
  --primary: #0f172a;
  --bg: #f8fafc;
  --text: #1e293b;
  --accent: #475569;
  --heading: #1e293b;
  --link: #1e293b;
  --border: #e5e7eb;
}

/* ========== 3. 접근성 ========== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
input:focus-visible,
label:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* ========== 4. 네비게이션 (N01) ========== */
header {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.menu-checkbox {
  display: none;
}

.menu-toggle {
  display: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0.5rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0;
}

nav a:hover {
  color: var(--accent);
}

nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu-checkbox:checked ~ nav {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
  }

  nav li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 1rem 0;
  }
}

/* ========== 5. 레이아웃 & 여백 (L19, S01) ========== */
section {
  padding: 5rem 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-gap {
  margin-top: 3rem;
}

/* ========== 6. 타이포그래피 (H17) ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.375rem);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
}

/* ========== 7. 버튼 (B17) ========== */
.btn {
  display: inline-block;
  border: 2px solid var(--primary);
  background: transparent;
  padding: 0.875rem 2rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

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

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ========== 8. 카드 (K17) ========== */
.card {
  border-bottom: 2px solid var(--border);
  padding: 2rem 0;
}

.card:last-child {
  border-bottom: none;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ========== 9. Hero 섹션 (L19 - 다이나믹) ========== */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(71, 85, 105, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--accent);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ========== 10. 탭 콘텐츠 (L19) ========== */
.tabs {
  margin-top: 3rem;
}

.tab-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.tab-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.tab-btn:hover {
  border-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

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

/* ========== 11. 체크리스트 (L19) ========== */
.checklist {
  list-style: none;
  margin-top: 2rem;
}

.checklist li {
  padding: 1rem 0;
  padding-left: 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ========== 12. 그리드 레이아웃 ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

/* ========== 13. FAQ ========== */
.faq-item {
  border-bottom: 2px solid var(--border);
  padding: 2rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--text);
  line-height: 1.7;
}

/* ========== 14. Footer ========== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* ========== 15. Contact 스타일 ========== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  padding: 2rem;
  background: #fff;
  border: 2px solid var(--border);
  text-align: center;
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ========== 16. 반응형 ========== */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }
}

/* ========== 17. 문서 컨테이너 (Privacy/Terms) ========== */
.doc-container {
  max-width: 800px;
  margin: 5rem auto;
  padding: 2rem;
  text-align: center;
}

.doc-container h1 {
  margin-bottom: 1.5rem;
}

.doc-container p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.doc-container a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.doc-container a:hover {
  text-decoration: underline;
}

/* ========== 18. 유틸리티 ========== */
.text-center {
  text-align: center;
}

.text-balance {
  text-wrap: balance;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}