/* JDT Prototype — Premium Travel Design System */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f5f2;
  --bg-tertiary: #f0ece6;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8f5;
  --bg-input: #f5f3f0;
  --gold: #C6A667;
  --gold-light: #d4b87a;
  --gold-dim: #a88c4e;
  --gold-glow: rgba(198, 166, 103, 0.1);
  --jdt-red: #CA0000;
  --jdt-red-light: #e10d39;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent-cherry: #CA0000;
  --accent-sakura: #f4a5b8;
  --accent-green: #00AA8D;
  --accent-blue: #003C6B;
  --accent-amber: #C6A667;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(198, 166, 103, 0.4);
  --radius: 8px;
  --radius-lg: 16px;
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-glow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--jdt-red);
  padding: 0 2rem;
}

nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

nav .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .logo img {
  height: 40px;
  width: auto;
}

nav .logo span { color: var(--text-secondary); font-weight: 400; }

nav .nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--jdt-red);
  background: rgba(202, 0, 0, 0.05);
}

nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-phone:hover { color: var(--jdt-red); }

.lang-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.lang-toggle:hover { border-color: var(--border-hover); color: var(--text-primary); }
.lang-toggle .active-lang { color: var(--jdt-red); font-weight: 600; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ---- HERO SLIDER ---- */
.hero-slider {
  position: relative;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

.hero-slides { position: relative; height: 100%; touch-action: pan-x; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  max-width: 700px;
}

.hero-kicker {
  display: inline-block;
  background: var(--jdt-red);
  color: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  width: fit-content;
}

.hero-slide-overlay h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-slide-overlay p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 500px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}
.hero-dot.active { background: #fff; transform: scale(1.2); }
.hero-dot:hover { background: rgba(255,255,255,0.7); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 2.5rem;
  width: 50px;
  height: 70px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover { background: rgba(0,0,0,0.5); }
.hero-prev { left: 0; border-radius: 0 4px 4px 0; }
.hero-next { right: 0; border-radius: 4px 0 0 4px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover {
  background: #00507a;
  box-shadow: 0 4px 16px rgba(0, 60, 107, 0.25);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* ---- SECTIONS ---- */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

section .section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

section .section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--jdt-red);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* ---- STAT CARDS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-mono);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ---- TOUR CARDS ---- */
.tour-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--jdt-red);
  color: var(--jdt-red);
  background: rgba(202, 0, 0, 0.06);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.tour-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.tour-card:hover {
  border-color: rgba(202, 0, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(202, 0, 0, 0.08);
}

.tour-card .tour-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.tour-card .tour-image .tour-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tour-badge.group { background: var(--accent-blue); color: #fff; }
.tour-badge.private { background: var(--gold); color: var(--bg-primary); }
.tour-badge.excursion { background: var(--accent-cherry); color: #fff; }
.tour-badge.custom { background: var(--accent-green); color: #fff; }

.tour-card .tour-image .tour-price {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.tour-price small { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }

.tour-card .tour-body { padding: 1.25rem; }

.tour-card .tour-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.tour-card .tour-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tour-card .tour-route {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tour-route .arrow { color: var(--gold-dim); }

.tour-card .tour-itinerary {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.tour-card.expanded .tour-itinerary { display: block; }

.itinerary-day {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.itinerary-day:last-child { border-bottom: none; }

.itinerary-day .day-num {
  color: var(--jdt-red);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-width: 3rem;
  padding-top: 0.1rem;
}

.itinerary-day .day-content { flex: 1; }
.itinerary-day .day-title { color: var(--text-primary); font-weight: 500; }
.itinerary-day .day-hotel { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.15rem; }

.itinerary-day .meals {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.meal-dot {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}
.meal-dot.included { background: rgba(46,125,62,0.12); color: var(--accent-green); }
.meal-dot.excluded { background: rgba(0,0,0,0.04); color: var(--text-muted); }

/* ---- API EXPLORER ---- */
.api-section { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 2rem; }

.api-group {
  margin-bottom: 1.5rem;
}

.api-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.api-group-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.api-group-header .tag {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag.master { background: rgba(74,143,226,0.15); color: var(--accent-blue); }
.tag.customer { background: rgba(201,168,76,0.15); color: var(--gold); }
.tag.knowledge { background: rgba(95,168,110,0.15); color: var(--accent-green); }

.endpoint {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: var(--transition);
}
.endpoint:hover { border-color: var(--border-hover); }

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.endpoint-header:hover { background: rgba(0,0,0,0.02); }

.method {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  min-width: 3rem;
  text-align: center;
}
.method.get { background: rgba(95,168,110,0.2); color: var(--accent-green); }

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.endpoint-summary {
  flex: 1;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.endpoint-chevron {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.75rem;
}
.endpoint.expanded .endpoint-chevron { transform: rotate(90deg); }

.endpoint-body {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.endpoint.expanded .endpoint-body { display: block; }

.endpoint-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.params-table th {
  text-align: left;
  padding: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.params-table td {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: top;
}
.params-table .param-name {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.8rem;
}
.params-table .param-type {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.params-table .param-desc { color: var(--text-secondary); }
.params-table .param-required { color: var(--accent-cherry); font-size: 0.7rem; }

.response-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.response-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.response-status.ok { color: var(--accent-green); }

.response-body {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-secondary);
  max-height: 400px;
  overflow-y: auto;
}

.json-key { color: var(--accent-blue); }
.json-string { color: var(--accent-green); }
.json-number { color: var(--accent-amber); }
.json-bool { color: var(--accent-cherry); }
.json-null { color: var(--text-muted); }

/* ---- ARCHITECTURE ---- */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.arch-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-diagram {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.arch-layer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 800px;
}

.arch-layer-label {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: -0.5rem;
}

.arch-node {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  min-width: 120px;
  border: 1px solid;
  transition: var(--transition);
}
.arch-node:hover { transform: scale(1.05); }

.arch-node.shopify { background: rgba(95,180,70,0.08); border-color: rgba(95,180,70,0.3); color: #3d8c2e; }
.arch-node.cf { background: rgba(246,166,35,0.08); border-color: rgba(246,166,35,0.3); color: #c48415; }
.arch-node.supabase { background: rgba(62,207,142,0.08); border-color: rgba(62,207,142,0.3); color: #1a8a5c; }
.arch-node.integration { background: rgba(74,143,226,0.08); border-color: rgba(74,143,226,0.3); color: var(--accent-blue); }
.arch-node.kub0 { background: rgba(139,105,20,0.08); border-color: rgba(139,105,20,0.3); color: var(--gold); }

.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ---- COST TABLE ---- */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.cost-table th,
.cost-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.cost-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.cost-table .old { color: var(--accent-cherry); text-decoration: line-through; }
.cost-table .new { color: var(--accent-green); font-weight: 600; }
.cost-table .total-row { border-top: 2px solid var(--border-hover); }
.cost-table .total-row td { font-weight: 700; font-size: 1rem; }
.cost-table .savings {
  color: var(--accent-green);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ---- INTEGRATION PREVIEW ---- */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.integration-card .int-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.integration-card .int-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
}
.int-icon.zendesk { background: rgba(3,54,61,0.3); color: #03363d; background: #03c1aa22; color: #03c1aa; }
.int-icon.dialpad { background: rgba(99,71,242,0.15); color: #6347f2; }
.int-icon.monday { background: rgba(255,51,51,0.15); color: #ff3333; }

.integration-card .int-body {
  padding: 1.25rem;
}

.mock-sidebar {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.8rem;
}

.mock-sidebar .mock-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.mock-sidebar .mock-row:last-child { border-bottom: none; }

.mock-sidebar .mock-label { color: var(--text-muted); }
.mock-sidebar .mock-value { color: var(--text-primary); font-weight: 500; }
.mock-sidebar .mock-value.positive { color: var(--accent-green); }
.mock-sidebar .mock-value.warning { color: var(--accent-amber); }

.mock-sidebar h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0.75rem 0 0.5rem;
}
.mock-sidebar h4:first-child { margin-top: 0; }

.mock-booking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}
.mock-booking-card .mbk-title { font-weight: 600; font-size: 0.8rem; margin-bottom: 0.25rem; }
.mock-booking-card .mbk-meta { font-size: 0.7rem; color: var(--text-muted); }

/* ---- PHASE TIMELINE ---- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--gold);
}

.timeline-item.active::before { background: var(--gold); }

.timeline-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.timeline-item .phase-week {
  font-size: 0.75rem;
  color: var(--gold-dim);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- FOOTER ---- */
/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--jdt-red);
  padding: 0.75rem 2rem;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  white-space: nowrap;
}
.trust-item strong { color: #fff; }
.trust-sep { color: rgba(255,255,255,0.3); }

/* ---- FOOTER ---- */
footer {
  background: #1f2937;
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
}

.footer-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.5); }

.footer-contact { font-size: 0.85rem; }
.footer-contact div { margin-bottom: 1rem; }

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-col strong {
  color: #fff;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { font-size: 0.7rem; color: rgba(255,255,255,0.3); }
.footer-cards-img { height: 24px; opacity: 0.6; }

footer a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.8rem; }
footer a:hover { color: #fff; }

/* ---- TOUR EXCERPT ---- */
.tour-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-badge.soldout { background: var(--accent-cherry); color: #fff; }

.btn-sm { font-size: 0.8rem; padding: 0.5rem 1rem; }

/* ---- HOW IT WORKS ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.step-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--jdt-red);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 2rem;
}
.modal-overlay.open { display: flex; justify-content: center; align-items: flex-start; }

.modal {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-hero {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.modal-hero-overlay h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.modal-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.modal-meta span {
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding: 2rem;
}

.modal-main { min-width: 0; }
.modal-main h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--jdt-red); }
.modal-excerpt { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.7; }

.itinerary-list { margin-bottom: 1rem; }

/* ---- BOOKING SIDEBAR ---- */
.booking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.booking-card h3 { font-size: 1rem; margin-bottom: 1rem; }

.price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.price-amount { font-size: 2rem; font-weight: 800; color: var(--accent-blue); font-family: var(--font-mono); }
.price-per { font-size: 0.8rem; color: var(--text-muted); }
.price-note { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.booking-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  margin-top: 0.75rem;
}
.booking-form label:first-of-type { margin-top: 0; }

.form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--gold); }

select.form-input { cursor: pointer; }

.booking-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.booking-total span:first-child { font-size: 0.85rem; color: var(--text-secondary); }
.total-amount { font-size: 1.3rem; font-weight: 800; color: var(--accent-blue); font-family: var(--font-mono); }

.booking-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

/* ---- TAGLINE ---- */
.tour-tagline {
  font-size: 0.8rem;
  color: var(--jdt-red);
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-style: italic;
}

.modal-tagline {
  font-size: 1rem;
  color: var(--jdt-red);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.75rem;
}

/* ---- GALLERY STRIP ---- */
.gallery-strip {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  overflow-x: auto;
}

.gallery-thumb {
  min-width: 80px;
  height: 56px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  border: 2px solid transparent;
}
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active { opacity: 1; border-color: var(--jdt-red); }

/* ---- JP TEXT ---- */
.jp { display: none; }
body.lang-jp .en { display: none; }
body.lang-jp .jp { display: inline; }
body.lang-jp .en-block { display: none; }
body.lang-jp .jp-block { display: block !important; }
.jp-block { display: none; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  nav .nav-links { display: none; }
  nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .hamburger { display: block; }
  section { padding: 3rem 1rem; }
  .hero-slider { height: 60vh; min-height: 400px; }
  .hero-slide-overlay { padding: 2rem; }
  .hero-slide-overlay h1 { font-size: 1.8rem; }
  .hero-arrow { width: 36px; height: 50px; font-size: 1.8rem; }
  .tour-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .endpoint-summary { display: none; }
  .modal-body { grid-template-columns: 1fr; }
  .modal { margin: 0; border-radius: 0; min-height: 100vh; }
  .modal-overlay { padding: 0; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .footer-contact { flex-direction: column; gap: 1rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .nav-phone { display: none; }
  .gallery-strip { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }
