:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #6f7a82;
  --line: #e6e9e7;
  --cream: #f4f4ef;
  --surface: #ffffff;
  --accent: #ffcc66;
  --accent-deep: #eb9e27;
  --teal: #216e70;
  --danger: #e56d61;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); }
body { min-height: 100svh; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) 430px; overflow: hidden; }
.map-wrap { position: relative; min-height: 100svh; background: #dfe9e8; }
#map { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.plain-map-surface, .plain-map-tiles, .plain-map-route, .plain-map-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.plain-map-surface { background: #dfe9e8; }
.plain-map-tiles { z-index: 0; overflow: hidden; }
.plain-map-tile { position: absolute; width: 256px; height: 256px; user-select: none; pointer-events: none; }
.plain-map-route { z-index: 2; overflow: visible; pointer-events: none; }
.route-shadow { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.route-line { fill: none; stroke: #216e70; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.plain-map-markers { z-index: 3; pointer-events: none; }
.map-pin { position: absolute; width: 27px; height: 27px; margin: -27px 0 0 -13px; border: 4px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 10px rgba(16,24,32,.25); }
.map-pin span { display: block; width: 7px; height: 7px; margin: 6px; border-radius: 50%; background: #fff; }
.map-pin.start { width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 3px solid #fff; border-radius: 50%; background: #4285f4; transform: none; box-shadow: 0 0 0 7px rgba(66,133,244,.16), 0 3px 10px rgba(16,24,32,.25); animation: location-pulse 2.2s ease-out infinite; }
.map-pin.start span { width: 6px; height: 6px; margin: 3px; }
.map-pin.end { background: #eb9e27; }
.map-topbar { position: absolute; z-index: 500; top: 22px; left: 28px; right: 28px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.brand-lockup, .map-action { pointer-events: auto; }
.brand-lockup { display: flex; gap: 11px; align-items: center; padding: 10px 15px 10px 10px; border: 1px solid rgba(16,24,32,.08); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 8px 28px rgba(28,52,55,.12); backdrop-filter: blur(10px); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--ink); font: 800 24px/1 Georgia, serif; }
.brand-lockup strong { display: block; font: 800 20px/1 Georgia, serif; letter-spacing: -.02em; }
.brand-lockup span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: 0 8px 28px rgba(28,52,55,.12); font-size: 26px; transition: transform .18s ease, background .18s ease; }
.icon-btn:hover { transform: translateY(-2px); background: var(--accent); }
.map-search { position: absolute; z-index: 510; top: 88px; left: 28px; width: min(460px, calc(100% - 56px)); margin: 0; }
.map-search .route-fields { border-color: rgba(16,24,32,.08); background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(28,52,55,.13); backdrop-filter: blur(12px); }
.map-search .field-row { min-height: 43px; }
.map-search .field-action { background: #e9f5f2; }
.map-search .field-action.search-action { padding: 8px 12px; border-radius: 9px; color: var(--ink); background: var(--accent); }
.map-search .swap-btn { box-shadow: 0 5px 14px rgba(28,52,55,.12); }
.map-status { position: absolute; z-index: 500; top: 193px; left: 28px; padding: 7px 11px; border-radius: 10px; color: #526067; background: rgba(255,255,255,.86); font-size: 11px; font-weight: 700; box-shadow: 0 4px 14px rgba(28,52,55,.08); }
.map-legend { position: absolute; z-index: 500; left: 28px; bottom: 24px; display: flex; gap: 10px; padding: 9px 12px; border-radius: 11px; background: rgba(255,255,255,.88); color: #526067; font-size: 11px; font-weight: 700; box-shadow: 0 4px 14px rgba(28,52,55,.08); }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.route-dot { background: var(--teal); }.current-dot { background: #4285f4; }
.map-controls { position: absolute; z-index: 500; right: 28px; bottom: 60px; display: grid; gap: 7px; }
.map-control { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(16,24,32,.08); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: 0 6px 18px rgba(28,52,55,.12); font-size: 23px; line-height: 1; transition: transform .18s ease, background .18s ease; backdrop-filter: blur(8px); }
.map-control:hover { background: var(--accent); transform: translateY(-1px); }
.locate-control { color: #4285f4; font-size: 24px; }

.control-panel { position: relative; z-index: 600; align-self: stretch; padding: 31px 30px 26px; background: var(--surface); box-shadow: -14px 0 36px rgba(16,24,32,.08); overflow: auto; }
.panel-handle { display: none; }
.panel-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 290px; margin-bottom: 0; font: 800 26px/1.18 Georgia, "Yu Mincho", serif; letter-spacing: -.03em; }
.live-pill { display: flex; gap: 6px; align-items: center; padding: 6px 9px; border-radius: 99px; color: var(--teal); background: #eef7f4; font-size: 10px; font-weight: 800; white-space: nowrap; }
.live-pill span { width: 6px; height: 6px; border-radius: 50%; background: #54b59c; box-shadow: 0 0 0 3px rgba(84,181,156,.15); }
.route-form { display: flex; align-items: center; gap: 9px; margin-bottom: 27px; }
.route-fields { flex: 1; padding: 3px 0; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; }
.field-row { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 0 12px; }
.field-row input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 650; }
.field-row input::placeholder { color: #929a9e; font-weight: 600; }
.field-icon { width: 15px; text-align: center; font-size: 11px; }.start-icon { color: var(--teal); }.end-icon { color: var(--accent-deep); }
.field-action { padding: 6px 8px; border-radius: 8px; color: var(--teal); background: #e9f5f2; font-size: 11px; font-weight: 800; white-space: nowrap; }
.route-line { height: 1px; margin: 0 17px 0 19px; background: var(--line); }
.swap-btn { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 11px; color: var(--teal); background: var(--surface); font-size: 21px; transition: .18s ease; }.swap-btn:hover { background: var(--accent); transform: rotate(180deg); }
.section-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: #39464d; font-size: 12px; font-weight: 800; }.muted { color: #9ba3a7; font-size: 11px; font-weight: 650; }.text-button { padding: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 800; }
.vehicle-section, .preference-section { margin-bottom: 22px; }
.vehicle-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vehicle-option { display: flex; align-items: center; gap: 8px; min-height: 68px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; text-align: left; transition: .18s ease; }.vehicle-option:hover { border-color: #a9cac2; }.vehicle-option.selected { border-color: var(--teal); background: #f0f8f5; box-shadow: inset 0 0 0 1px var(--teal); }.vehicle-emoji { font-size: 20px; }.vehicle-option strong { display: block; font-size: 12px; }.vehicle-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 600; white-space: nowrap; }.check { display: none; margin-left: auto; color: var(--teal); font-weight: 900; }.selected .check { display: block; }
.preference-chips { display: flex; gap: 7px; }.pref-chip { padding: 8px 10px; border: 1px solid var(--line); border-radius: 99px; color: #657078; background: #fff; font-size: 11px; font-weight: 800; transition: .18s ease; }.pref-chip:hover, .pref-chip.active { border-color: #c9a048; color: #815c13; background: #fff7e2; }
.route-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 0 17px; border-radius: 14px; color: var(--ink); background: var(--accent); font-size: 14px; font-weight: 850; box-shadow: 0 9px 18px rgba(235,158,39,.18); transition: transform .18s ease, background .18s ease; }.route-button:hover { background: #ffd982; transform: translateY(-2px); }.route-button:disabled { cursor: wait; opacity: .7; transform: none; }.arrow { font-size: 23px; font-weight: 400; }
.disclaimer { margin: 11px 0 0; color: #929a9e; text-align: center; font-size: 10px; line-height: 1.5; }.disclaimer a { margin-left: 5px; color: var(--teal); font-weight: 800; text-decoration: none; }.disclaimer a:hover { text-decoration: underline; }
.ad-slot { margin: 20px 0 4px; padding: 10px 12px 12px; border: 1px solid #edf0ee; border-radius: 13px; background: #fbfcfb; }.ad-slot-label { margin-bottom: 7px; color: #9ba3a7; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-align: center; }.ad-slot-body { min-height: 72px; }
.guidance-button { margin-top: 14px; }
.route-result { animation: rise .35s ease both; }.result-divider { height: 1px; margin: 25px 0 20px; background: var(--line); }.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.result-kicker { color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .1em; }.result-heading h2 { margin: 4px 0 0; font: 800 20px/1.2 Georgia, "Yu Mincho", serif; }.route-badge { padding: 6px 8px; border-radius: 7px; color: var(--teal); background: #eaf6f2; font-size: 10px; font-weight: 850; white-space: nowrap; }.route-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.route-stats div { padding-left: 13px; border-left: 1px solid var(--line); }.route-stats div:first-child { padding-left: 0; border-left: 0; }.route-stats strong, .route-stats span { display: block; }.route-stats strong { font: 800 19px/1.1 Georgia, serif; }.route-stats span { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }.notice-card { display: flex; gap: 9px; padding: 12px; border-radius: 11px; background: #fff8e8; }.notice-icon { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--accent-deep); font-size: 12px; font-weight: 900; }.notice-card strong { font-size: 11px; }.notice-card p { margin: 3px 0 0; color: #806d49; font-size: 11px; line-height: 1.5; }
.nav-card { position: fixed; z-index: 800; top: 25px; left: 28px; display: flex; align-items: stretch; gap: 18px; min-width: 310px; max-width: min(420px, calc(100vw - 56px)); padding: 14px 14px 14px 17px; border-radius: 16px; background: rgba(16,24,32,.94); color: #fff; box-shadow: 0 12px 32px rgba(16,24,32,.24); backdrop-filter: blur(12px); }
.nav-card-main { min-width: 0; }.nav-kicker { display: block; margin-bottom: 5px; color: #9bd5c4; font-size: 10px; font-weight: 850; letter-spacing: .1em; }.nav-card-main strong { display: block; overflow: hidden; font-size: 16px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.nav-distance { display: block; margin-top: 6px; color: #ffda7d; font-size: 13px; font-weight: 800; }.nav-stop { align-self: center; flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #fff; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 800; }.nav-stop:hover { background: rgba(255,255,255,.2); }
.modal-backdrop { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16,24,32,.42); backdrop-filter: blur(5px); }.modal { position: relative; width: min(430px, 100%); padding: 28px; border-radius: 21px; background: var(--surface); box-shadow: 0 18px 70px rgba(16,24,32,.25); }.modal h2 { margin: 0 0 13px; font: 800 24px/1.2 Georgia, serif; }.modal p, .modal li { color: #526067; font-size: 13px; line-height: 1.7; }.modal ul { padding-left: 18px; }.modal-close { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); background: #f0f2f0; font-size: 22px; line-height: 1; }.modal-button { margin-top: 10px; justify-content: center; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes location-pulse { 0%, 55%, 100% { box-shadow: 0 0 0 7px rgba(66,133,244,.16), 0 3px 10px rgba(16,24,32,.25); } 25% { box-shadow: 0 0 0 12px rgba(66,133,244,.03), 0 3px 10px rgba(16,24,32,.25); } }
.guidance-active .control-panel { min-height: 58px; max-height: 58px; padding: 8px 16px 10px; overflow: hidden; }
.guidance-active .control-panel .panel-header,
.guidance-active .control-panel .vehicle-section,
.guidance-active .control-panel .preference-section,
.guidance-active .control-panel .disclaimer,
.guidance-active .control-panel .route-result { display: none; }
.guidance-active .control-panel::after { content: '●  案内中　・　GPSで現在地を更新しています'; display: block; color: var(--teal); font-size: 11px; font-weight: 800; text-align: center; }

@media (max-width: 900px) {
  body { background: #fff; }.app-shell { display: block; overflow: visible; }.map-wrap { min-height: 60svh; height: 60svh; }.control-panel { margin-top: -18px; min-height: 40svh; max-height: 48svh; padding: 15px 16px 24px; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 25px rgba(16,24,32,.08); overflow-y: auto; overscroll-behavior: contain; }.panel-handle { display: block; width: 42px; height: 4px; margin: 0 auto 15px; border-radius: 99px; background: #d8ddda; }.map-topbar { top: 13px; left: 14px; right: 14px; }.map-search { top: 68px; left: 14px; width: calc(100% - 28px); }.map-status { top: 171px; left: 14px; }.map-legend { left: 14px; bottom: 14px; }.map-controls { right: 14px; bottom: 50px; }.map-control { width: 40px; height: 40px; }.brand-lockup { padding: 7px 10px 7px 7px; }.brand-mark { width: 31px; height: 31px; }.brand-lockup strong { font-size: 17px; }.brand-lockup span { display: none; }.icon-btn { width: 40px; height: 40px; }.panel-header { margin-bottom: 17px; }.eyebrow { margin-bottom: 5px; }h1 { font-size: 21px; }
}
@media (max-width: 900px) { .nav-card { top: 14px; left: 14px; max-width: calc(100vw - 28px); min-width: 0; right: 14px; }.nav-card-main { flex: 1; } }
@media (max-width: 410px) { .vehicle-options { grid-template-columns: 1fr 1fr; gap: 7px; }.vehicle-option { min-height: 63px; padding: 8px; gap: 6px; }.vehicle-option small { font-size: 9px; }.vehicle-emoji { font-size: 18px; }.preference-chips { gap: 4px; }.pref-chip { padding-inline: 8px; font-size: 10px; } }
@media (max-width: 900px) { .guidance-active .control-panel .panel-handle { margin-bottom: 5px; } }

.info-page { min-height: 100svh; padding: 24px 16px; background: var(--cream); }.info-card { width: min(680px, 100%); margin: 0 auto; padding: 28px clamp(20px, 5vw, 44px) 38px; border-radius: 22px; background: var(--surface); box-shadow: 0 14px 36px rgba(16,24,32,.08); }.back-link { display: inline-block; margin-bottom: 34px; color: var(--teal); font-size: 13px; font-weight: 800; text-decoration: none; }.info-card h1 { max-width: none; margin-bottom: 30px; }.info-card h2 { margin: 26px 0 8px; font-size: 17px; }.info-card p { color: #526067; font-size: 14px; line-height: 1.8; }.info-card .eyebrow { margin-bottom: 8px; }.info-updated { margin-top: 34px; color: #929a9e !important; font-size: 12px !important; }
