:root {
  font-family: "Yu Gothic UI", Meiryo, sans-serif;
  color: #193d35;
  background: #f3f6f5;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #d4e2dc;
}
h1 {
  font-size: 20px;
  margin: 0;
  flex: 1;
}
header a {
  font-size: 14px;
  color: #09694d;
  text-decoration: none;
}
header strong {
  font-size: 36px;
  color: #09694d;
}
main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: calc(100dvh - 77px);
}
#scene {
  min-height: 500px;
  position: relative;
  touch-action: none;
  overflow: hidden;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
#scene-error {
  position: absolute;
  inset: 25% 24px auto;
  background: white;
  color: #96432c;
  padding: 20px;
  z-index: 2;
  line-height: 1.8;
}
.view-controls {
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  gap: 6px;
  z-index: 1;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #c7d9d0;
  background: white;
  color: #235947;
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 44px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button[aria-pressed="true"],
button.primary {
  background: #09694d;
  color: white;
  border-color: #09694d;
}
.walk-panel {
  background: #fff;
  padding: 28px 22px;
  z-index: 1;
  overflow: auto;
}
h2 {
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.hint {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  color: #61766c;
}
#walk-status {
  background: #e9f3ee;
  border-left: 3px solid #09694d;
  padding: 12px;
  font-size: 16px;
  line-height: 1.75;
}
label {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  font-size: 16px;
  font-weight: 600;
}
label .hint {
  font-weight: 400;
}
input {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #b7cec1;
  border-radius: 7px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.progress-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  font-size: 14px;
}
progress {
  width: 100%;
  height: 12px;
  accent-color: #09694d;
}
#step-count {
  white-space: nowrap;
}
#choose-route {
  color: #09694d;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #178aca;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    gap: 10px;
    padding: 12px;
  }
  h1 {
    font-size: 16px;
  }
  header strong {
    font-size: 30px;
  }
  main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #scene {
    height: 52dvh;
    min-height: 300px;
  }
  .walk-panel {
    padding: 20px 16px;
  }
  .view-controls {
    top: 12px;
    left: 12px;
  }
  .view-controls button {
    font-size: 14px;
    padding: 10px;
  }
  header a {
    font-size: 12px;
  }
}
