/* ==============================================
   하라주쿠 굿즈샵 완전 공략 — 모바일 특화 모던 다크 UI
   (시부야 가이드 디자인 시스템 기반, 하라주쿠 라벤더 퍼플 테마)
   ============================================== */

:root {
  /* 배경 */
  --bg:          #0d0f0e;
  --bg-card:     #171122;
  --bg-card2:    #1e1530;
  --bg-dark:     #0a0813;
  --bg-overlay:  rgba(13,15,14,.82);

  /* 메인 컬러 — 하라주쿠 라벤더 퍼플 (팝·큐트·캐릭터의 거리) */
  --primary:        #b47aea;
  --primary-dim:    #4a2678;
  --primary-pale:   rgba(180,122,234,.12);
  --primary-glow:   rgba(180,122,234,.18);

  /* 포인트 — 앰버 (네온 골드) */
  --amber:       #c8963a;
  --amber-dim:   rgba(200,150,58,.15);

  /* 텍스트 */
  --t1:          #f0ece4;
  --t2:          #a09890;
  --t3:          #6a6258;

  /* 선/구분 */
  --line:        rgba(255,255,255,.07);
  --line2:       rgba(255,255,255,.04);

  /* 반지름 */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;

  /* 그림자 */
  --sh-card: 0 2px 16px rgba(0,0,0,.4);
  --sh-pop:  0 12px 40px rgba(0,0,0,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.65;
  font-size: 15px;
  font-weight: 400;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
}

@media (min-width: 860px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 860px) {
  .container { max-width: 720px; }
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 860px) { .nav-inner { max-width: 720px; } }
.nav-logo {
  font-size: 15px; font-weight: 700;
  color: var(--t1);
  letter-spacing: -.01em;
}
.nav-menu-btn {
  width: 36px; height: 36px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  position: relative;
  z-index: 200;
}
.nav-menu-btn span {
  display: block;
  width: 20px; height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── NAV DRAWER (반드시 nav 바깥에 배치) ─── */
.nav-drawer {
  position: fixed; top: 0; right: -100%;
  width: 78%; max-width: 320px;
  height: 100vh; height: 100dvh;
  background: var(--bg-card);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 40px rgba(0,0,0,.5);
  padding: 80px 28px 28px;
  z-index: 150;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 6px;
}
.nav-drawer.open { right: 0; }
.nav-drawer a {
  display: block;
  padding: 14px 4px;
  font-size: 15px; font-weight: 500;
  color: var(--t1);
  border-bottom: 1px solid var(--line2);
  transition: color .2s, padding .2s;
}
.nav-drawer a:hover { color: var(--primary); padding-left: 6px; }
.nav-drawer a i { width: 22px; color: var(--primary); margin-right: 6px; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 20px 80px;
  overflow: hidden;
  text-align: center;
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(180,122,234,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(180,122,234,.10) 0%, transparent 55%),
    linear-gradient(135deg,
      rgba(180,122,234,.12) 0%,
      rgba(13,15,14,0) 45%,
      rgba(180,122,234,.08) 100%),
    #0d0f0e;
}
.hero-bg-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 1px, transparent 1px 80px);
  opacity: .6;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 560px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .25em;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--t1);
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.hero-sub {
  font-size: 15px;
  color: var(--t2);
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-ctas {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(180,122,234,.35);
}
.btn-primary:hover { background: #9a5fd6; }
.btn-ghost {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,.04); }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  color: var(--t3);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: scrollHint 2s ease-in-out infinite;
}
.hero-scroll-hint i { font-size: 14px; }
@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); opacity: .7; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ─── SECTIONS COMMON ─── */
section {
  padding: 80px 0;
  position: relative;
}
.section-dark {
  background: var(--bg-dark);
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .25em;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 4px 10px;
  text-transform: uppercase;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 14px;
  color: var(--t1);
}
.divider {
  width: 40px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-desc {
  font-size: 14px;
  color: var(--t2);
  margin-top: 18px;
  line-height: 1.75;
}

/* ─── OVERVIEW (info-card) ─── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-align: center;
  transition: border-color .25s, transform .25s;
}
.info-card:hover {
  border-color: var(--primary-dim);
  transform: translateY(-2px);
}
.info-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin: 0 auto 14px;
  border: 1px solid var(--primary-dim);
}
.info-card h3 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 8px;
  color: var(--t1);
}
.info-card p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.65;
}
.tag-warn {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px; font-weight: 600;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ─── ACCESS ─── */
.route-list {
  display: flex; flex-direction: column;
  gap: 12px;
}
.route-step {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.route-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.route-body h4 {
  font-size: 14px; font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
}
.route-body p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6;
}

.alert-card {
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.alert-card.warn { border-left-color: var(--amber); }
.alert-card i {
  font-size: 16px;
  color: var(--primary);
  margin-top: 3px;
}
.alert-card.warn i { color: var(--amber); }
.alert-card h5 {
  font-size: 13px; font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
}
.alert-card p {
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.6;
}

/* ─── MAP ─── */
#map {
  width: 100%;
  height: 420px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.dist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.dist-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.dist-name {
  font-size: 14px; font-weight: 500;
  color: var(--t1);
  line-height: 1.4;
}
.dist-time {
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid var(--primary-dim);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
/* 출발역(맨 위) + 환승역 → 꽉 찬 포인트 컬러 버튼 */
.dist-list li:first-child .dist-time,
.dist-station .dist-time {
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 700;
}

.dist-right-wrap {
  display: flex; align-items: center; gap: 8px;
}
.dist-map-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary);
  border: 1px solid var(--primary-dim);
  font-size: 13px;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.dist-map-btn:hover { background: var(--primary); color: #fff; }

/* Google Maps InfoWindow */
.gm-style .gm-style-iw-c {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh-pop) !important;
  padding: 14px !important;
  max-width: 280px !important;
}
.gm-style .gm-style-iw-tc::after { background: var(--bg-card) !important; }
.gm-style .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; }
.gm-style .gm-ui-hover-effect > span { background-color: #a0a090 !important; }
.iw-card { padding: 0px 16px 14px; margin-top: -8px; }
.iw-card .iw-emoji { font-size: 22px; margin-bottom: 6px; display: block; }
.iw-card .iw-title { font-size: 15px; font-weight: 700; color: var(--t1); margin-bottom: 2px; }
.iw-card .iw-en { font-size: 11px; color: var(--t3); letter-spacing: .04em; margin-bottom: 8px; text-transform: uppercase; }
.iw-card .iw-desc { font-size: 13px; color: var(--t2); line-height: 1.6; }

/* ─── SHOPS (area-grid) ─── */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .area-grid { grid-template-columns: 1fr 1fr; }
}
.area-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
  position: relative;
}
.area-card:hover {
  border-color: var(--primary-dim);
  transform: translateY(-2px);
}
.area-emoji {
  font-size: 28px;
  margin-bottom: 12px;
}
.area-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px; font-weight: 600;
  letter-spacing: .15em;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.area-card h3 {
  font-size: 17px; font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
  line-height: 1.3;
}
.area-card .area-jp {
  font-size: 11px;
  color: var(--t3);
  letter-spacing: .04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.area-card .area-loc {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.area-card p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.7;
  flex: 1;
}
.area-card .area-actions {
  margin-top: 14px;
  display: flex; gap: 8px;
}
.area-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--primary-pale);
  color: var(--primary);
  border: 1px solid var(--primary-dim);
  transition: background .2s, color .2s;
}
.area-btn:hover { background: var(--primary); color: #fff; }

/* ─── CHECKLIST ─── */
.cl-list {
  display: flex; flex-direction: column;
  gap: 10px;
}
.cl-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.cl-item:hover { border-color: var(--primary-dim); }
.cl-checkbox {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  font-size: 11px;
  transition: background .2s, border-color .2s, color .2s;
  margin-top: 1px;
}
.cl-item.checked .cl-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.cl-item.checked .cl-text {
  color: var(--t3);
  text-decoration: line-through;
}
.cl-text {
  font-size: 13.5px;
  color: var(--t1);
  line-height: 1.55;
  transition: color .2s;
}

/* ─── FAQ ─── */
.faq-list {
  display: flex; flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--primary-dim); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px 16px 52px;
  font-size: 14px; font-weight: 600;
  color: var(--t1);
  position: relative;
  line-height: 1.5;
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.faq-item summary::after {
  content: "\f078"; /* chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  font-size: 11px;
  transition: transform .25s;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  padding: 0 18px 18px 52px;
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.75;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  text-align: center;
}
.footer-logo {
  font-size: 14px; font-weight: 700;
  color: var(--t1);
  margin-bottom: 8px;
}
.footer p {
  font-size: 12px;
  color: var(--t3);
  line-height: 1.7;
}
.footer .small {
  margin-top: 8px;
  font-size: 11px;
  color: var(--t3);
}

/* ─── BOTTOM NAV ─── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--bg-overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0;
  font-size: 10px; font-weight: 500;
  color: var(--t3);
  transition: color .2s;
}
.bottom-nav a i { font-size: 16px; }
.bottom-nav a:hover, .bottom-nav a.active { color: var(--primary); }

@media (min-width: 860px) {
  .bottom-nav { display: none; }
}

/* ─── FADE-IN ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── UTIL ─── */
.text-center { text-align: center; }

/* ─── CHECKLIST 진행률 바 ─── */
.cl-progress {
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.cl-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cl-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
}
.cl-progress-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.cl-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.cl-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  border-radius: 999px;
  transition: width 0.4s ease;
}
