:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --subtle: #F1EFE9;
  --text: #141413;
  --muted: #5C5B57;
  --border: #E6E3DC;
  --accent: #0F4C81;
  --gold: #C8A97E;
  --red: #DC2626;
  --red-soft: #FEF2F2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

.hero {
  background: radial-gradient(circle at top right, rgba(200, 169, 126, 0.22), transparent 55%),
              radial-gradient(circle at bottom left, rgba(220, 38, 38, 0.06), transparent 45%), #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 32px 18px 26px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #FECACA;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto 18px;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.btn:hover { transform: translateY(-1px); border-color: #C7C3BA; }
.btn-primary { background: #141413; color: #FFFFFF; border-color: #141413; }
.btn-red { background: var(--red); color: #FFFFFF; border-color: var(--red); }

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}

.nav-inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 2px 0;
}

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

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-links a.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

@media (min-width: 1024px) {
  .nav-links {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.search-box {
  min-height: 40px;
  min-width: 220px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.86rem;
}

.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  background: #FFFDF9;
  border: 1px dashed #F87171;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.86rem;
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.74rem;
  margin-right: 4px;
}

.guide-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 4px 18px rgba(20, 20, 19, 0.04);
  scroll-margin-top: 86px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.guide-section.is-targeted {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.sec-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sec-head h2 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
}

.sec-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--subtle);
  color: var(--text);
}

.open-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #141413;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.guide-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

@media (max-width: 860px) {
  .guide-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.visual-shot {
  background: #FAFAF8;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.visual-shot svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.visual-caption {
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.steps-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  background: var(--subtle);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.87rem;
}

.step-card > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.step-card:hover {
  border-color: #FECACA;
  background: #FFF9F9;
}

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.step-card > div > strong:first-child {
  display: block;
  margin-bottom: 3px;
  font-size: 0.92rem;
  color: var(--text);
}

.note {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #EFF6FF;
  border-left: 4px solid var(--accent);
  font-size: 0.84rem;
  color: #1E3A5F;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 12px;
  min-width: 0;
  max-width: 100%;
}

.sec-head h2 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th { background: var(--subtle); font-weight: 700; }

@media (max-width: 640px) {
  .search-box { width: 100%; }
  .guide-section { padding: 16px; border-radius: 18px; }
}

@media print {
  .sticky-nav, .hero-actions, .open-app-btn { display: none !important; }
  .guide-section { break-inside: avoid; box-shadow: none; }
}
