:root {
  --bg: #fffdf8;
  --fg: #1f2a37;
  --muted: #6b7280;
  --line: #e7e2d8;
  --accent: #e8590c;
  --sea: #1c7ed6;
  --chip: #fff1e6;
  --neg: #f1f3f5;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: flex;
  font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

#panel {
  width: 420px;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid var(--line);
}
#map { flex: 1; height: 100%; }

h1 { margin: 0; font-size: 1.5rem; color: var(--sea); }
h2 { font-size: 1rem; margin: 20px 0 8px; display: flex; align-items: center; gap: 8px; }
.lead { margin: 6px 0 14px; font-size: 0.9rem; }
.step {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sea); color: #fff; font-size: 0.8rem;
}

textarea {
  width: 100%; padding: 10px; font: inherit; font-size: 1rem;
  border: 2px solid var(--line); border-radius: 10px; resize: vertical; background: #fff;
}
textarea:focus { outline: none; border-color: var(--sea); }
.row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
button {
  font: inherit; font-size: 0.9rem; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: none;
  background: var(--accent); color: #fff; font-weight: bold;
}
button.ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.live { font-size: 0.8rem; color: var(--muted); }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.example {
  background: #fff; color: var(--fg); font-weight: normal; font-size: 0.78rem;
  border: 1px solid var(--line); padding: 4px 10px;
}
.example:hover { border-color: var(--sea); color: var(--sea); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.chip { background: var(--chip); border-radius: 8px; padding: 4px 10px; font-size: 0.85rem; }
.chip.neg { background: var(--neg); color: var(--muted); }
details { margin-top: 8px; font-size: 0.85rem; }
summary { cursor: pointer; color: var(--sea); }
pre {
  background: #1f2a37; color: #e9ecef; padding: 10px; border-radius: 8px;
  font-size: 0.72rem; overflow-x: auto; max-height: 240px;
}

.summary { font-size: 0.85rem; font-weight: bold; margin: 0 0 8px; }
#tour { list-style: none; padding: 0; margin: 0; }
.leg {
  font-size: 0.75rem; color: var(--muted);
  border-left: 3px dashed var(--accent); margin-left: 13px; padding: 4px 0 4px 18px;
}
.stop {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
}
.stop:hover { border-color: var(--accent); }
.num {
  flex-shrink: 0; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: bold;
}
.time { font-size: 0.75rem; color: var(--muted); }
.name { font-weight: bold; }
.meta { font-size: 0.75rem; color: var(--muted); }
.empty { color: var(--muted); font-size: 0.9rem; }
.source { font-size: 0.75rem; color: var(--muted); }

footer { margin-top: 24px; font-size: 0.72rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
a { color: var(--sea); }

.pin {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: bold; font-size: 0.85rem;
  display: grid; place-items: center; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); cursor: pointer;
}
.pin.start { background: var(--sea); font-size: 0.7rem; }

@media (max-width: 760px) {
  body { flex-direction: column-reverse; }
  #panel { width: 100%; height: auto; flex: 1; border-right: none; border-top: 1px solid var(--line); padding: 16px; }
  #map { flex: none; height: 45vh; }
}
