/* 路線ツアーページ。PC: 左本文+右sticky地図 / スマホ: 地図を背景にカードを重ねる */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; color: #222; line-height: 1.75; }
a { color: #1a73e8; }

.tour-header { max-width: 46em; padding: 16px 24px 4px; }
.tour-header .back { font-size: 13px; }
.tour-header h1 { font-size: 22px; margin: 0.4em 0 0.2em; }
.tour-header .subtitle { color: #555; margin: 0 0 0.4em; }
.tour-header .lead { color: #444; }

.tour { display: flex; align-items: flex-start; }
.text { width: 42%; max-width: 36em; padding: 8px 24px 40vh; }
.mapwrap { flex: 1; position: sticky; top: 0; height: 100vh; }
#map { width: 100%; height: 100%; }

.stop { min-height: 55vh; padding: 12px 0; opacity: 1; transition: opacity 0.4s; }
body.js .stop { opacity: 0.85; }
.stop.active { opacity: 1; }
.stop h2 { font-size: 17px; margin: 0 0 0.5em; border-bottom: 1px solid #ddd;
  padding-bottom: 4px; color: #335; }
.maplink { font-size: 13px; }
/* 本文中の路線名・施設名: 地図のハイライトと同じく薄い電圧色の背景（蛍光ペン風）。
   ホバー=濃くなり地図の該当路線を強調 / クリック=ズーム */
.stop-body .spot-rt { background:color-mix(in srgb, var(--rt, #B54EB2) 24%, transparent);
  border-radius:3px; padding:0 2px; cursor:pointer; }
.stop-body .spot-rt:hover { background:color-mix(in srgb, var(--rt, #B54EB2) 45%, transparent); }
.refs h2 { font-size: 15px; color: #446; }
.refs ul { padding-left: 1.4em; font-size: 14px; }
footer { margin: 2.4em 0 24px; font-size: 12px; color: #777;
  border-top: 1px solid #eee; padding-top: 10px; }

@media (max-width: 768px) {
  .tour { display: block; }
  .mapwrap { position: fixed; inset: 0; height: 100%; z-index: 0; }
  .text { position: relative; z-index: 1; width: 100%; max-width: none;
    padding: 45vh 10px 40vh; pointer-events: none; }
  .tour-header, .stop, .refs, footer { pointer-events: auto; }
  .tour-header { position: relative; z-index: 1; background: rgba(255,255,255,0.93);
    border-radius: 12px; padding: 14px 16px; margin: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
  .stop, .refs, footer { background: rgba(255,255,255,0.93); border-radius: 12px;
    padding: 14px 16px; margin: 0 0 45vh; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
  .stop { min-height: 0; }
  /* スマホはカード背景があるので淡色化しない（body.js の規則より詳細度を上げて打ち消す） */
  body.js .text .stop { opacity: 1; }
  footer { margin-bottom: 12px; }
}
