/* 相場ページ・駅ページ（見本）。site-kama.css → k-sub.css の後に読む */
:root{--ks-s1:#C2562A;--ks-s2:#2A6FB8;--ks-s3:#1E8E62;--ks-line:#E3D7C0;--ks-soft:#FBF8F2;--ks-hl:#F7DCC2;--ks-ink:#8A5530;--ks-muted:#6E655C}

/* 要点のカード */
.ks-keys{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:900px}
.ks-keys li{background:#fff;border-radius:14px;padding:14px 16px;display:grid;gap:2px;border-top:3px solid var(--wp--preset--color--shinchu)}
.ks-keys small{font-size:12px;font-weight:700;color:var(--ks-ink)}
.ks-keys b{font-family:var(--wp--preset--font-family--mincho);font-size:24px;color:var(--wp--preset--color--ai);line-height:1.4}
.ks-keys i{font-style:normal;font-size:13px;margin-left:3px}
.ks-keys span{font-size:12px;color:#777;line-height:1.6}

/* 表（築年×広さ・沿線） */
.ks-tbox{overflow-x:auto;border:1px solid var(--ks-line);border-radius:14px;background:#fff;-webkit-overflow-scrolling:touch}
.ks-t{border-collapse:separate;border-spacing:0;width:100%;min-width:600px;font-variant-numeric:tabular-nums}
.ks-t th,.ks-t td{border-bottom:1px solid #F0E8DC;padding:11px 12px;text-align:left;vertical-align:top;font-size:14px;line-height:1.5}
.ks-t thead th{background:var(--ks-soft);font-weight:700;font-size:12.5px;color:var(--ks-ink);white-space:nowrap}
.ks-t thead th .sub{display:block;font-weight:400;font-size:11px;color:#888;white-space:normal;line-height:1.4;margin-top:2px}
.ks-t tbody th{font-weight:700;font-size:13px;color:var(--wp--preset--color--ai);white-space:nowrap;background:#fff;position:sticky;left:0;z-index:1;box-shadow:1px 0 0 var(--ks-line)}
.ks-t thead th:first-child{position:sticky;left:0;z-index:2;box-shadow:1px 0 0 var(--ks-line)}
.ks-t tbody tr:last-child>*{border-bottom:0}
.ks-t .c{min-width:120px}
.ks-t .v{display:block;font-family:var(--wp--preset--font-family--mincho);font-weight:800;font-size:19px;color:var(--wp--preset--color--ai);line-height:1.3;white-space:nowrap}
.ks-t .v small{font-family:var(--wp--preset--font-family--sans);font-size:11px;font-weight:500;color:#888;margin-left:2px}
.ks-t .cnt{display:block;font-size:11.5px;color:#888;margin-top:2px}
.ks-t .c-hid{background:repeating-linear-gradient(135deg,var(--ks-soft) 0 6px,#fff 6px 12px)}
.ks-t .c-hid .cnt{color:#555;font-size:12.5px;margin-top:0}
.ks-t .c-hid .ask{display:block;font-size:12px;color:var(--ks-ink);font-weight:700}
.ks-t .c-none{color:#aaa;font-size:16px}
.ks-t td.hl{background:var(--ks-hl);box-shadow:inset 3px 0 0 var(--wp--preset--color--shinchu)}
.ks-t td.hl.c-hid{background:repeating-linear-gradient(135deg,var(--ks-hl) 0 6px,#FCEBDD 6px 12px)}
.ks-t td .here{display:inline-block;margin-top:4px;padding:0 7px;border-radius:999px;background:var(--wp--preset--color--shinchu);color:#fff;font-size:11px;font-weight:700}
.ks-pills{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.ks-pills span{font-size:12px;border:1px solid var(--ks-line);border-radius:999px;padding:1px 10px;color:#777;background:#fff}
.ks-pills b{color:var(--wp--preset--color--ai)}
.ks-hint{display:none;font-size:12px;color:#888;margin:6px 0 0}
@media (max-width:700px){.ks-hint{display:block}}

/* 図の枠 */
.ks-fig{background:#fff;border:1px solid var(--ks-line);border-radius:14px;padding:14px 14px 10px;position:relative;display:grid;gap:8px}
.ks-fig svg{display:block;width:100%;height:auto}
.ks-cap{margin:0;font-size:12.5px;color:#777;line-height:1.7}
.ks-leg{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;padding:0;list-style:none;font-size:12.5px;color:#666}
.ks-leg li{display:inline-flex;align-items:center;gap:6px}
.ks-leg i{display:inline-block;width:14px;height:4px;border-radius:2px}
.ks-leg i.k1{background:var(--ks-s1)}.ks-leg i.k2{background:var(--ks-s2)}.ks-leg i.k3{background:var(--ks-s3)}
.ks-leg i.ko{height:10px;width:10px;border-radius:50%;border:1.5px dashed #999;background:#fff}
.ks-two{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}
.ks-tip{position:absolute;pointer-events:none;background:var(--wp--preset--color--ai);color:#fff;font-size:12px;line-height:1.5;padding:6px 10px;border-radius:8px;white-space:nowrap;transform:translate(-50%,calc(-100% - 10px));z-index:4}

/* 折れ線（svg） */
.ch-grid{stroke:#EFE7DA;stroke-width:1}
.ch-ax{fill:#888;font-size:11px;font-family:var(--wp--preset--font-family--sans)}
.ch-ln{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ch-ln.k1,.ch-pt.k1{stroke:var(--ks-s1)}.ch-ln.k2,.ch-pt.k2{stroke:var(--ks-s2)}.ch-ln.k3,.ch-pt.k3{stroke:var(--ks-s3)}
.ch-pt{fill:#fff;stroke-width:2.5}
.ch-hit{fill:transparent;cursor:pointer}
.ch-lab{font-size:12px;font-weight:700;font-family:var(--wp--preset--font-family--sans)}
.ch-lab.k1{fill:var(--ks-s1)}.ch-lab.k2{fill:var(--ks-s2)}.ch-lab.k3{fill:var(--ks-s3)}

/* 路線図（svg） */
.mp-ln{fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.mp-ln.sk{stroke:var(--ks-s2)}.mp-ln.tb{stroke:var(--ks-s3)}.mp-ln.hk{stroke:#9A8F86;stroke-width:3.5;stroke-dasharray:7 5}
.mp-ln.ext{opacity:.28}
.mp-lnl{font-size:11px;font-weight:700;font-family:var(--wp--preset--font-family--sans)}
.mp-lnl.sk{fill:var(--ks-s2)}.mp-lnl.tb{fill:var(--ks-s3)}.mp-lnl.hk{fill:#8a8077;font-weight:500}
.st circle.dot{fill:#fff;stroke-width:3}
.st.sk circle.dot{stroke:var(--ks-s2)}.st.tb circle.dot{stroke:var(--ks-s3)}.st.hub circle.dot{stroke:var(--wp--preset--color--ai);stroke-width:3.5}
.st text{fill:var(--wp--preset--color--ai);font-size:13.5px;font-weight:700;font-family:var(--wp--preset--font-family--sans);paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.st text .b{font-size:11px;font-weight:500;fill:#777}
.st text.pr{font-family:var(--wp--preset--font-family--mincho);font-size:14px;font-weight:800}
.st text.pr .un{font-family:var(--wp--preset--font-family--sans);font-size:10px;font-weight:500;fill:#888}
.st text.pr.ask{font-family:var(--wp--preset--font-family--sans);font-size:11.5px;fill:var(--ks-ink)}
.st.on circle.dot{fill:var(--wp--preset--color--shinchu);stroke:var(--wp--preset--color--shinchu)}
.st.on text{fill:var(--ks-ink)}
.st.on circle.ring{fill:none;stroke:var(--wp--preset--color--shinchu);stroke-width:2;opacity:.5}
a.st{cursor:pointer}
a.st:hover text,a.st:focus text{text-decoration:underline}
a.st:focus{outline:none}
a.st:focus-visible circle.dot{stroke-width:5}
/* 大きい版（トップ）の駅のボタン 2026-11-09 */
.st circle.hit{fill:transparent;stroke:none}
.st rect.pill{fill:#fff;stroke:#D9C9AE;stroke-width:1.5;filter:drop-shadow(0 2px 3px rgba(62,39,35,.12));transition:fill .15s,stroke .15s}
.st text.nm{font-size:15px;stroke-width:0}
.st text.nm .go{fill:#A1673A;font-weight:800}
.st text.cnt{font-size:12.5px;font-weight:700;fill:#8A5530;stroke-width:0}
.st.sk rect.pill{stroke:var(--ks-s2)}.st.tb rect.pill{stroke:var(--ks-s3)}.st.hub rect.pill{stroke:var(--wp--preset--color--ai);stroke-width:2}
a.st:hover rect.pill,a.st:focus-visible rect.pill{fill:#FFF4E6;stroke:#A1673A;stroke-width:2.5}
a.st:hover circle.dot,a.st:focus-visible circle.dot{fill:#A1673A}
a.st:hover text.nm,a.st:focus text.nm{text-decoration:none}
.st.out circle.dot{stroke:#9A8F86;stroke-width:2;stroke-dasharray:3 2}
.st.out text{fill:#8a8077;font-size:11px;font-weight:500}
.mp-ui line,.mp-ui path{stroke:#999;stroke-width:1.2;fill:none}
.mp-uit{fill:#999;font-size:10px;font-family:var(--wp--preset--font-family--sans)}

/* 駅のチップ */
.ks-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.ks-chips a{display:inline-block;padding:5px 14px;border-radius:999px;background:#fff;border:1px solid var(--ks-line);color:var(--wp--preset--color--ai);font-size:13.5px;font-weight:700;text-decoration:none}
.ks-chips a small{font-weight:500;color:#888;margin-left:4px}
.ks-chips a[aria-current]{background:var(--wp--preset--color--shinchu);border-color:var(--wp--preset--color--shinchu);color:#fff}
.ks-chips a[aria-current] small{color:#fff}

/* 駅ページ */
.ks-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.ks-stat{background:#fff;border-radius:12px;padding:12px 14px;display:grid;gap:2px;border-top:3px solid var(--wp--preset--color--shinchu)}
.ks-stat small{font-size:12px;color:var(--ks-ink);font-weight:700}
.ks-stat b{font-family:var(--wp--preset--font-family--mincho);font-size:22px;color:var(--wp--preset--color--ai);line-height:1.35;white-space:nowrap}
.ks-stat b i{font-style:normal;font-family:var(--wp--preset--font-family--sans);font-size:12px;font-weight:500;color:#888;margin-left:2px}
.tl-band{fill:var(--ks-soft)}.tl-band.on{fill:var(--ks-hl)}
.tl-bl{fill:#888;font-size:11.5px;font-family:var(--wp--preset--font-family--sans)}.tl-bl.on{fill:var(--ks-ink);font-weight:700}
.tl-ax{stroke:#D8CBB5;stroke-width:1}
.tl-tk{fill:#999;font-size:11px;font-family:var(--wp--preset--font-family--sans)}
.tl-dot{fill:var(--wp--preset--color--shinchu);stroke:#fff;stroke-width:1.5;opacity:.9}
.tl-n{fill:var(--wp--preset--color--ai);font-size:12.5px;font-weight:700;font-family:var(--wp--preset--font-family--sans)}
.ks-where{margin:0 0 14px;padding:14px 18px;border-radius:12px;background:#fff;border-left:4px solid var(--wp--preset--color--shinchu);font-size:15px;line-height:1.8}
.ks-where b{color:var(--ks-ink)}
.ks-legend-hl{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px;color:#666}
.ks-legend-hl i{display:inline-block;width:16px;height:16px;border-radius:3px;background:var(--ks-hl);box-shadow:inset 3px 0 0 var(--wp--preset--color--shinchu)}
.ks-bl{min-width:560px}
.ks-bl td,.ks-bl th{white-space:nowrap}
.ks-bl td.n{text-align:right;font-variant-numeric:tabular-nums}
.ks-bl tbody th{position:static;box-shadow:none;font-size:14px}
.ks-bl .city{display:inline-block;margin-left:6px;padding:0 6px;border-radius:4px;background:var(--ks-soft);border:1px solid var(--ks-line);font-size:11px;font-weight:500;color:#777}
.ks-bl .nt{display:block;font-size:11px;font-weight:400;color:#999;white-space:normal}
.ks-scope{margin:0;padding:18px 22px;border-radius:14px;background:#fff;border:1px solid var(--ks-line);font-size:14.5px}
.ks-scope ul{margin:6px 0;padding-left:1.2em}

/* 駅ページ：駅と街 */
.ks-town{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:20px;align-items:start}
.ks-town__basic{margin:0;background:#fff;border-radius:14px;border:1px solid var(--ks-line);padding:6px 20px}
.ks-town__basic div{display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px dashed var(--ks-line)}
.ks-town__basic div:last-child{border-bottom:0}
.ks-town__basic dt{font-size:13px;font-weight:700;color:var(--ks-ink)}
.ks-town__basic dd{margin:0;font-size:14.5px;line-height:1.7}
.ks-town__basic dd .k-todo{margin-top:4px}
.ks-town__col{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.ks-town__shops li span{min-width:0}
.ks-town__box{background:#fff;border-radius:14px;border:1px solid var(--ks-line);padding:16px 20px}
.ks-town__box h3{margin:0 0 8px;font-size:17px}
.ks-town__box ul{margin:0;padding:0;list-style:none;display:grid;gap:8px;font-size:14.5px}
.ks-town__box li{position:relative;padding-left:16px;line-height:1.7}
.ks-town__box li::before{content:"";position:absolute;left:2px;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--wp--preset--color--shinchu)}
.ks-town__shops li{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.ks-town__shops li span small{display:block;font-size:11.5px;color:#888}
.ks-town__shops em{flex:none;font-style:normal;font-size:13px;font-weight:700;color:var(--wp--preset--color--ai);text-align:right;white-space:nowrap}
.ks-town__shops em i{display:block;font-style:normal;font-size:10.5px;font-weight:400;color:#999}
.ks-town__shops li.is-none{display:block;color:#666}
.ks-town__note{margin:10px 0 0;font-size:12px;color:#888;line-height:1.7}
.ks-town__mine{margin:16px 0 0;display:grid;gap:8px}
.ks-town__mine p{margin:0;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;font-size:14px}
.ks-town__mine b{color:var(--wp--preset--color--ai);min-width:7em}

@media (max-width:899px){
  .ks-town{grid-template-columns:minmax(0,1fr)}
  .ks-town__basic div{grid-template-columns:6.5em minmax(0,1fr)}
  .ks-keys{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ks-two{grid-template-columns:minmax(0,1fr)}
  .ks-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ks-stats .ks-stat:first-child{grid-column:1/-1}
}

/* 駅の写真（11/08。写真がある駅だけ） */
.ks-ekiphoto{margin:0 0 24px;max-width:760px}
.ks-ekiphoto[hidden]{display:none}
.ks-ekiphoto img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:14px;background:#E6DCCB}
.ks-ekiphoto figcaption{margin-top:8px;font-size:13px;color:#6B5E55;line-height:1.6}

/* 今月の更新（本番の ks.css と同じ。11/09） */
.ks-news{margin:20px 0 0;background:#fff;border:1.5px solid #A1673A;border-left:6px solid #A1673A;border-radius:14px;padding:14px 18px}
.ks-news__h{margin:0;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}
.ks-news__h b{font-family:var(--wp--preset--font-family--mincho);font-size:17px;color:#8A4F24}
.ks-news__h span{font-size:14px;color:#3E2723}
.ks-news__n{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ks-news__n li{margin:0;background:#FBF8F2;border-radius:999px;padding:4px 14px;font-size:13px;color:#555}
.ks-news__n small{margin-right:6px;font-size:12px;color:#6B5E55}
.ks-news__n b{font-size:18px;color:var(--wp--preset--color--ai);margin-right:1px}
.ks-news__sub{margin:12px 0 4px;font-weight:700;font-size:14px;color:var(--wp--preset--color--ai)}
.ks-news__sub small{margin-left:8px;font-weight:400;font-size:12px;color:#888}
.ks-news__ch{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:4px 16px}
.ks-news__ch li{margin:0;display:flex;gap:8px;align-items:baseline;font-size:13px;color:#555;border-bottom:1px dashed #E3D7C0;padding:3px 0}
.ks-news__ch a{font-weight:700;color:#8A5530;white-space:nowrap}
.ks-news__ch b{color:#8A4F24}
.ks-news__note{margin:8px 0 0;font-size:12px;color:#888}
