* { box-sizing: border-box; }
body { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; margin: 0; color: #1d2433; background: #eef1f6; }
a { color: #2f4bff; text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: #fff; color: #223; padding: 18px 16px 16px; border-bottom: 1px solid #e3e7f0; }
.hw { max-width: 1080px; margin: 0 auto; }
header h1 { font-size: 26px; margin: 0 0 4px; }
header h1 a { color: #223; }
.logo { height: 52px; width: auto; display: block; }
header p { margin: 0; color: #667; font-size: 13px; }
.linetabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.linetab { color: #243b8f; background: #eef2fb; text-decoration: none; font-size: 14px; font-weight: 700; padding: 7px 16px; border-radius: 999px; border: 1px solid #d5ddf0; }
.linetab:hover { background: #e0e8fd; }
.linetab.on { background: #2f4bff; color: #fff; border-color: #2f4bff; }
.preftabs { align-items: center; }
.preflabel { color: #667; font-size: 13px; font-weight: 700; white-space: nowrap; flex: none; }
.textnav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.textnav a { font-size: 13.5px; font-weight: 700; color: #243b8f; }
.nb { white-space: nowrap; }
main { max-width: 1080px; margin: 0 auto; padding: 6px 16px 24px; }
section { background: #fff; border-radius: 14px; padding: 20px; margin-top: 16px; box-shadow: 0 1px 4px rgba(20,30,60,.08); }
h2 { font-size: 19px; margin: 0 0 6px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.sub { color: #667; font-size: 13px; margin: 0 0 14px; }
.pcity { font-size: 12px; color: #778; margin-left: 6px; font-weight: 400; }
.growth { font-size: 12.5px; color: #0a8f5b; font-weight: 800; white-space: nowrap; }
.pax-emph { color: #0a8f5b; font-size: 1.3em; font-weight: 800; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pod { border: 1px solid #e3e7f0; border-radius: 12px; padding: 14px; text-align: center; background: #fbfcff; }
.pod.p1 { border-color: #e8b93e; background: #fffdf3; }
.medal { font-size: 24px; }
.pname { font-size: 19px; font-weight: 700; }
.pscore { font-size: 40px; font-weight: 800; color: #2f4bff; line-height: 1.1; }
.pod.p1 .pscore { color: #c9930a; }
.plabel { font-size: 11px; color: #889; }
.psub { font-size: 12px; color: #556; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 7px 6px; border-bottom: 1px solid #edf0f5; text-align: right; }
th { color: #667; font-weight: 600; }
td.st, th.st { text-align: left; font-weight: 700; }
td.st span { display: block; font-weight: 400; color: #889; font-size: 11px; }
td.rk { font-weight: 800; color: #2f4bff; }
tr.nodata { color: #889; }
td.sc { font-weight: 800; }
td.sc .bar { height: 5px; background: #edf0f5; border-radius: 3px; margin-top: 3px; min-width: 74px; }
td.sc .bar i { display: block; height: 5px; border-radius: 3px; background: #2f4bff; }
td.sc.hot, .bsc.hot { color: #d43d2a; }
td.sc.warm, .bsc.warm { color: #e8873a; }
td.sc.mid, .bsc.mid { color: #7a7; }
td.sc.low, .bsc.low { color: #889; }
.bd { font-size: 10px; padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.bd.mock { background: #f0f1f4; color: #778; }
.bd.real { background: #fdeee9; color: #b03320; font-weight: 700; }
/* 横スクロール表: 列を潰さず、はみ出した分はスクロールで見る */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tscroll table { min-width: 700px; }
.tscroll th, .tscroll td { white-space: nowrap; }
.tscroll th[style*="text-align:left"], .tscroll td[style*="text-align:left"] { white-space: normal; min-width: 150px; }
.hb { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; }
.hbn { width: 104px; text-align: right; font-weight: 600; }
.hbt { flex: 1; background: #edf0f5; border-radius: 4px; height: 16px; }
.hbt i { display: block; height: 16px; border-radius: 4px; }
.hbv { width: 86px; color: #445; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scatter { width: 100%; height: auto; }
.sct { font-size: 12px; font-weight: 700; fill: #333; }
.sca { font-size: 12px; fill: #667; }
.scq { font-size: 12px; fill: #99a; font-weight: 700; }
.btabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.btab { border: 1px solid #c9d2e8; background: #fff; color: #2f4bff; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btab.on { background: #2f4bff; color: #fff; }
.brk { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #edf0f5; font-size: 14px; flex-wrap: wrap; }
.brn { font-weight: 800; color: #2f4bff; font-size: 16px; width: 22px; }
.bst { font-weight: 700; width: 148px; }
.bst small { display: block; color: #889; font-weight: 400; font-size: 11px; }
.bsc { font-size: 20px; font-weight: 800; width: 52px; }
.bpr { font-weight: 700; width: 170px; }
.bpr small { display: block; color: #889; font-weight: 400; font-size: 11px; }
.bdt { color: #556; font-size: 12px; }
.crumb { margin: 14px 0 0; font-size: 13px; }
.bigscore { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
.bs-num { font-size: 52px; font-weight: 800; color: #2f4bff; line-height: 1; }
.bs-label { font-size: 12px; color: #889; margin-left: 8px; }
.bs-sub { font-size: 15px; color: #445; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: #f5f8ff; border-radius: 10px; padding: 12px; text-align: center; }
.stat b { font-size: 20px; display: block; color: #16265c; }
.stat.pax { background: #e9f9f1; box-shadow: inset 0 0 0 1px #bfe8d2; }
.stat.pax b { font-size: 27px; color: #0a8f5b; }
.stat span { font-size: 11px; color: #667; }
#map { height: 380px; border-radius: 10px; }
.mocknote { background: #fff3cd; border: 1px solid #e6c65c; color: #6b5510; border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.seiyaku-box { background: #f5f8ff; }
.cta { display: inline-block; background: #2e7d6b; color: #fff; border-radius: 8px; padding: 10px 18px; font-weight: 700; }
.cta:hover { text-decoration: none; opacity: .9; }
footer { max-width: 1080px; margin: 0 auto; padding: 0 16px 36px; color: #778; font-size: 12px; line-height: 1.7; }
/* --- トップページ（入口） --- */
.hero { position: relative; overflow: hidden; color: #fff; background: #16265c; padding: 0; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero .hero-in { position: relative; padding: 52px 26px 44px; }
.hero-icon { width: 54px; height: 54px; border-radius: 13px; box-shadow: 0 3px 12px rgba(0,0,0,.35); margin-bottom: 14px; }
.hero-title { font-size: 30px; line-height: 1.35; margin: 0 0 18px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.searchbox { position: relative; max-width: 640px; }
.searchbox input { width: 100%; font-size: 17px; padding: 15px 18px; border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: #1d2433; border-radius: 12px; box-shadow: 0 6px 24px rgba(10,20,50,.28); overflow: hidden; z-index: 30; text-align: left; }
.sg-item { display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 15px; font-weight: 600; color: #1d2433; border-bottom: 1px solid #eef1f6; }
.sg-item:hover, .sg-item.on { background: #f0f4ff; text-decoration: none; }
.sg-kind { font-size: 10px; font-weight: 700; background: #2f4bff; color: #fff; border-radius: 6px; padding: 2px 6px; }
.sg-kind.line { background: #2e7d6b; }
.sg-line { font-size: 12px; color: #889; font-weight: 400; }
.sg-none { padding: 12px 14px; font-size: 13px; color: #778; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.entry-card { display: block; border: 1px solid #e3e7f0; border-radius: 14px; overflow: hidden; background: #fff; color: #1d2433; }
.entry-card:hover { text-decoration: none; box-shadow: 0 4px 16px rgba(20,30,60,.14); }
.entry-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.entry-card .ec-in { padding: 12px 14px 14px; }
.entry-name { font-size: 18px; font-weight: 800; }
.entry-card p { margin: 4px 0 0; font-size: 13px; color: #667; }
.linegrid { display: flex; flex-wrap: wrap; gap: 8px; }
.linechip { border: 1px solid #c9d2e8; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; background: #fbfcff; }
.linechip:hover { background: #eef2ff; text-decoration: none; }
.prefgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.prefcard { display: block; border: 1px solid #e3e7f0; border-radius: 12px; padding: 16px; background: #fbfcff; color: #1d2433; }
.prefcard:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(20,30,60,.12); }
.prefname { font-size: 20px; font-weight: 800; }
.prefmeta { font-size: 12px; color: #778; margin-top: 2px; }
.preftop { margin-top: 10px; font-size: 13.5px; }
.prefscore { font-size: 22px; font-weight: 800; color: #2f4bff; margin-left: 8px; }
.prefgo { margin-top: 10px; font-size: 13px; font-weight: 700; color: #2f4bff; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-card { display: block; border: 1px solid #e3e7f0; border-radius: 14px; overflow: hidden; background: #fff; color: #1d2433; }
.feat-card:hover { text-decoration: none; box-shadow: 0 4px 16px rgba(20,30,60,.14); }
.feat-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.feat-card .fc-in { padding: 14px 16px 16px; }
.feat-name { font-size: 17px; font-weight: 800; line-height: 1.45; }
.feat-card p { margin: 5px 0 0; font-size: 13px; color: #667; }
.credits { font-size: 11px; color: #99a; line-height: 1.8; }
.credits a { color: #99a; text-decoration: underline; }
/* --- 偏差値とは（図解） --- */
.how-wrap { display: flex; align-items: center; gap: 14px; }
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: 1; }
.how-card { border: 1px solid #e3e7f0; border-radius: 14px; padding: 10px 10px 13px; text-align: center; background: #fbfcff; }
.how-icon { width: 46px; height: 46px; }
.how-img { width: 100%; height: 108px; object-fit: cover; border-radius: 9px; display: block; }
.how-card.pax { border: 2px solid #f2a93b; background: #fff9ee; }
.how-card.pax .how-img { height: 152px; }
.how-card.pax .how-axis { background: #f2a93b; }
.how-card.pax .how-name { font-size: 19px; }
.how-name { font-size: 17px; font-weight: 800; margin-top: 6px; }
.how-sub { font-size: 12.5px; color: #667; margin-top: 3px; line-height: 1.55; }
.how-axis { display: inline-block; margin-top: 9px; font-size: 11px; font-weight: 700; color: #fff; background: #8899bb; border-radius: 999px; padding: 2px 10px; }
.how-arrow { font-size: 30px; font-weight: 800; color: #2f4bff; flex: none; }
.score-circle { flex: none; width: 118px; height: 118px; border-radius: 50%; background: linear-gradient(130deg, #16265c, #2f4bff); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 19px; font-weight: 800; line-height: 1.4; box-shadow: 0 3px 12px rgba(20,30,60,.25); }
.how-note { font-size: 12px; color: #778; margin: 12px 0 0; }
.cmp-wrap { display: flex; align-items: center; gap: 14px; }
.cmp-station { flex: none; text-align: center; font-size: 13px; font-weight: 700; color: #345; }
.cmp-station span { display: block; margin-top: 4px; }
.cmp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.cmp-card { border: 1px solid #e3e7f0; border-radius: 14px; padding: 12px 10px; text-align: center; background: #fbfcff; }
.cmp-label { font-size: 13px; font-weight: 700; color: #345; margin-top: 4px; }
.cmp-score { font-size: 16px; margin-top: 4px; }
.cmp-score b { font-size: 24px; color: #16265c; }
.pop-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; border-radius: 999px; padding: 1px 8px; line-height: 1.6; vertical-align: middle; white-space: nowrap; }
.pop-badge.line { background: #2f4bff; }
.pop-badge.pref { background: #2e7d6b; }
.pop-score .pop-badge { margin-left: 6px; }
.flow-title { margin-top: 24px; }
.flow-label { font-size: 13px; font-weight: 800; color: #16265c; margin: 12px 0 6px; }
.flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.flow-step { background: #f5f8ff; border: 1px solid #dbe4ff; border-radius: 10px; padding: 8px; font-size: 13.5px; font-weight: 700; display: flex; flex-direction: column; justify-content: center; text-align: center; flex: 1 1 118px; }
.step-img { width: 100%; height: 86px; object-fit: cover; border-radius: 7px; display: block; margin-bottom: 6px; }
.flow-step em { font-style: normal; font-size: 11px; color: #778; font-weight: 400; }
.flow-step.goal { background: #fdf0ec; border-color: #f3c4b8; color: #b03320; }
.flow-arrow { align-self: center; color: #2f4bff; font-weight: 800; }
/* --- 地図ページ --- */
#bigmap { height: min(74vh, 660px); min-height: 430px; border-radius: 10px; }
.maplegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: #556; margin-bottom: 10px; }
.maplegend .lg i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.mapnote { font-size: 11.5px; color: #889; margin: 8px 0 0; }
.pop { font-size: 13px; min-width: 180px; }
.pop-name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.pop-score b { font-size: 18px; color: #2f4bff; }
.pop-score span { font-size: 11px; color: #889; }
.pop-row { margin-top: 3px; }
.pop-link { display: inline-block; margin-top: 8px; font-weight: 700; }
/* --- 再開発特集 --- */
.bigstats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.bigstat { flex: 1; min-width: 150px; background: #f5f8ff; border-radius: 12px; padding: 14px; text-align: center; }
.bigstat b { font-size: 27px; display: block; color: #16265c; line-height: 1.2; white-space: nowrap; }
.bigstat span { font-size: 11.5px; color: #667; }
.cluster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cluster-card { border: 1px solid #e3e7f0; border-radius: 14px; overflow: hidden; background: #fff; }
.cluster-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.cluster-card .cc-in { padding: 14px 16px 16px; }
.cc-name { font-size: 19px; font-weight: 800; }
.cc-num { font-size: 30px; font-weight: 800; color: #2f4bff; line-height: 1.15; }
.cc-num small { font-size: 13px; color: #556; font-weight: 600; }
.cc-members { font-size: 12px; color: #778; margin-top: 6px; line-height: 1.6; }
details.more { margin-top: 6px; }
details.more summary { cursor: pointer; font-weight: 700; color: #2f4bff; font-size: 14px; padding: 6px 0; }
details.more .sub { margin-top: 8px; }
/* --- 路線ページ: 注目駅と路線図 --- */
.feature-station { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.feature-station .fs-photo { min-height: 230px; background: linear-gradient(130deg, #16265c, #2f4bff); }
.feature-station .fs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-station .fs-in { padding: 22px 24px; }
.fs-tag { display: inline-block; background: #d43d2a; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.fs-name { font-size: 30px; font-weight: 800; margin-top: 8px; }
.fs-name small { font-size: 13px; color: #778; font-weight: 400; margin-left: 8px; }
.fs-score { font-size: 56px; font-weight: 800; color: #2f4bff; line-height: 1.1; }
.fs-score small { font-size: 14px; color: #889; font-weight: 600; }
.fs-line { font-size: 13.5px; color: #445; margin-top: 6px; line-height: 1.7; }
.routemap { overflow-x: auto; padding-bottom: 8px; }
.track { display: flex; min-width: max-content; position: relative; padding: 0 6px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 5px; background: linear-gradient(90deg, #9db4ff, #2f4bff); border-radius: 3px; }
.node { width: 88px; flex: none; text-align: center; color: #1d2433; position: relative; }
.node:hover { text-decoration: none; }
.nrank { display: block; height: 16px; font-size: 11px; font-weight: 800; color: #d43d2a; }
.nrank.none { color: #aab; }
.ncircle-wrap { height: 72px; display: flex; align-items: center; justify-content: center; }
.ncircle { border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(20,30,60,.3); }
.ncircle.hot { background: #d43d2a; }
.ncircle.warm { background: #e8873a; }
.ncircle.mid { background: #58a05c; }
.ncircle.low { background: #7d8aa0; }
.ncircle.nodata { background: #e8ebf1; color: #99a; box-shadow: none; border-color: #dfe3ea; }
.ncircle b { font-size: 15px; }
.nname { display: block; font-size: 13.5px; font-weight: 700; margin-top: 2px; line-height: 1.3; }
.ngrow { display: inline-block; font-size: 13px; color: #0a8f5b; font-weight: 800; background: #e5f6ee; border-radius: 999px; padding: 1px 8px; margin-top: 2px; }
.nnodata { display: block; font-size: 10.5px; color: #99a; }
/* --- 都県イラストマップ --- */
.prefmap { display: block; width: 100%; max-width: 560px; height: auto; margin: 4px auto 0; }
.prefshape path { fill: #e6eefc; stroke: #7ea3e3; stroke-width: 1.6; stroke-linejoin: round; }
.prefshape text { font-size: 16px; font-weight: 800; fill: #22366b; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.prefshape:hover path { fill: #cfdefa; }
.prefshape.on path { fill: #2f4bff; stroke: #2f4bff; }
.prefshape.on text { fill: #fff; }
.prefswitch .prefmap { max-width: 460px; }
.psw-label { font-size: 13px; font-weight: 700; color: #667; text-align: center; }
.preflist { margin-top: 10px; }
.prefrow { display: flex; align-items: baseline; gap: 10px; padding: 11px 4px; border-bottom: 1px solid #edf0f5; color: #1d2433; }
.prefrow:hover { text-decoration: none; background: #f7faff; }
.pr-name { font-weight: 800; flex: none; width: 76px; }
.pr-top { flex: 1; font-size: 13.5px; color: #445; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-score { font-weight: 800; color: #2f4bff; font-size: 17px; flex: none; }
.pr-n { font-size: 11.5px; color: #889; flex: none; }
.prefrow .lr-arrow { flex: none; }
/* --- 路線一覧ページ --- */
.linelist { margin-top: 4px; }
.linerow { display: flex; align-items: baseline; gap: 10px; padding: 13px 4px; border-bottom: 1px solid #edf0f5; color: #1d2433; }
.linerow:hover { text-decoration: none; background: #f7faff; }
.lr-name { font-size: 16px; font-weight: 700; }
.lr-top { flex: 1; font-size: 12.5px; color: #778; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-n { font-size: 12.5px; color: #889; flex: none; }
.lr-arrow { color: #2f4bff; font-weight: 800; font-size: 17px; flex: none; }
@media (max-width: 760px) {
  .grid2, .podium { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .entry-grid, .feat-grid, .cluster-grid { grid-template-columns: 1fr; }
  .prefgrid { grid-template-columns: repeat(2, 1fr); }
  .feature-station { grid-template-columns: 1fr; }
  .feature-station .fs-photo { min-height: 170px; }
  .hero .hero-in { padding: 40px 20px 34px; }
  .hero-title { font-size: 22px; }
  .bigstat b { font-size: 20px; }
  /* 予算別などの行リストはグリッドで整列させる */
  .brk { display: grid; grid-template-columns: 24px 1fr auto; column-gap: 8px; align-items: baseline; }
  .brn { width: auto; }
  .bst { width: auto; }
  .bsc { width: auto; }
  .bpr { grid-column: 2 / -1; width: auto; margin-top: 2px; }
  .bdt { grid-column: 2 / -1; }
  .how-card { padding: 14px 4px 12px; }
  .how-name { font-size: 13px; white-space: nowrap; }
  .pr-n { display: none; }
  /* 路線図は縦型に */
  .routemap { overflow-x: visible; }
  .track { flex-direction: column; min-width: 0; padding: 0; }
  .track::before { left: 51px; right: auto; top: 0; bottom: 0; width: 5px; height: auto; background: linear-gradient(180deg, #9db4ff, #2f4bff); }
  .node { width: auto; display: flex; align-items: center; gap: 10px; text-align: left; padding: 3px 0; }
  .nrank { height: auto; width: 30px; flex: none; text-align: right; }
  .ncircle-wrap { height: auto; flex: none; }
  .nname { margin-top: 0; }
  .ngrow { display: inline-block; margin-left: 6px; }
  .nnodata { display: inline; margin-left: 6px; }
  .step-img { height: 120px; }
  .how-card.pax .how-img { height: 118px; }
  .how-wrap { flex-direction: column; }
  .cmp-wrap { flex-direction: column; }
  .cmp-cards { width: 100%; }
  .how-cards { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .how-sub { font-size: 11px; }
  .how-arrow { transform: rotate(90deg); }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-step { text-align: center; }
  /* ヘッダーのナビは折り返して収める */
  .linetabs { flex-wrap: wrap; padding-bottom: 2px; }
  .linetab { flex: none; }
  .textnav { gap: 4px 16px; }
  .logo { height: 44px; }
}
