/* ============================================================
   スムビュー style.css
   エキビューと同系のデザイン言語（ライト/ダーク対応・依存なし）
   ============================================================ */

:root {
  --bg: #f4f6f5;
  --bg-soft: #eceff0;
  --card: #ffffff;
  --text: #171a20;
  --muted: #667085;
  --border: #e4e7ee;
  --link: #2563eb;
  --accent: #1d9e75;
  --chip-bg: #f1f3f8;
  --shadow: 0 10px 30px rgba(23, 26, 32, 0.08);
  --shadow-sm: 0 2px 10px rgba(23, 26, 32, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 58px;
  --maxw: 1080px;
}

html[data-theme='dark'] {
  --bg: #0e1116;
  --bg-soft: #131720;
  --card: #171c26;
  --text: #e9ecf2;
  --muted: #97a1b3;
  --border: #262d3b;
  --link: #7aa5ff;
  --accent: #5dcaa5;
  --chip-bg: #1f2532;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- PR表記バー ---------- */
.pr-note {
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding: 4px 12px;
  border-bottom: 1px solid var(--border);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; opacity: 0.85; }
.logo .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #1d9e75, #2563eb);
  display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 900;
  box-shadow: 0 3px 8px rgba(29, 158, 117, 0.35);
}
.logo .sub { font-size: 10px; font-weight: 500; color: var(--muted); margin-top: 10px; }
.nav-eki {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  background: var(--card);
  white-space: nowrap;
}
.nav-eki:hover { border-color: var(--link); color: var(--link); text-decoration: none; }
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  display: grid; place-items: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); }

/* ---------- 特集本体（tk-） ---------- */
.tk h1 { font-size: 1.55rem; font-weight: 900; margin-bottom: 10px; line-height: 1.4; }
.tk-h1-sub { font-size: 0.95rem; color: var(--muted); font-weight: 700; margin-left: 6px; }
.tk h2 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 12px; }
.tk-lead { color: var(--muted); font-size: 14px; max-width: 780px; margin-bottom: 18px; line-height: 1.9; }
.tk-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); }
.tk-panel h2 { margin: 0 0 10px; font-size: 1.05rem; }
.tk-ctl { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tk-ctl-label { font-size: 12px; color: var(--muted); font-weight: 700; flex: none; padding-top: 6px; min-width: 78px; }
.tk-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-pill { font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--chip-bg); color: var(--text); }
.tk-pill:hover { border-color: var(--link); }
.tk-pill.on { background: var(--link); border-color: var(--link); color: #fff; font-weight: 700; }
.tk-legend { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.tk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 12px; vertical-align: -1px; }
.tk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tk-chart { min-width: 680px; }
.tk-axis { display: flex; }
.tk-axis-label { width: 150px; flex: none; font-size: 11px; color: var(--muted); align-self: flex-end; padding-bottom: 2px; font-weight: 700; }
.tk-axis-track { position: relative; flex: 1; height: 18px; font-size: 11px; color: var(--muted); }
.tk-axis-track span { position: absolute; transform: translateX(-50%); }
.tk-lane { display: flex; border-top: 1px solid var(--border); }
.tk-ll { width: 150px; flex: none; display: flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 8px 4px 0; line-height: 1.45; }
.tk-tr { position: relative; flex: 1; height: 56px; border-left: 2px solid var(--border); }
.tk-gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); opacity: 0.55; }
.tk-st { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 13px; height: 13px; text-decoration: none; }
.tk-dot { display: block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--card); }
.tk-stn { position: absolute; left: 50%; transform: translateX(-50%); top: -19px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.tk-st.bot .tk-stn { top: auto; bottom: -19px; }
.tk-st.edge .tk-stn { transform: translateX(-82%); }
.tk-st:hover .tk-stn { color: var(--link); text-decoration: underline; }
.tk-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; max-width: 820px; }
.tk-wards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tk-ward { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.tk-ward-h { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tk-ward-h a { color: var(--text); }
.tk-ward-h a:hover { color: var(--link); text-decoration: none; }
.tk-band { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tk-ward-v { font-size: 22px; font-weight: 900; margin: 4px 0 2px; }
.tk-ward-v small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.tk-ward-l { font-size: 11px; color: var(--muted); }
.tk-ward-links { display: flex; gap: 12px; margin-top: 9px; font-size: 12px; font-weight: 700; }
.tk-portal-box p { font-size: 13.5px; line-height: 1.9; }
.tk-portals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tk-portal { font-size: 12.5px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; background: var(--chip-bg); color: var(--text); font-weight: 700; }
.tk-portal:hover { border-color: var(--link); color: var(--link); text-decoration: none; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--card); border: 1px solid var(--border); min-width: 640px; }
.tk-table th, .tk-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.tk-table th { font-size: 11.5px; color: var(--muted); background: var(--chip-bg); }
.tk-table .tk-ln { color: var(--muted); font-size: 11.5px; }
.tk-src ul { padding-left: 18px; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.tk-series { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tk-series a { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); color: var(--text); }
.tk-series a:hover { border-color: var(--link); text-decoration: none; }
.tk-series b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.tk-series span { font-size: 12px; color: var(--muted); line-height: 1.7; display: block; }

/* ---------- 静的ページ（about/privacy） ---------- */
.page-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.page-card h2 { font-size: 1.1rem; margin-bottom: 8px; }

/* ---------- フッター ---------- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--border); background: var(--bg-soft); padding: 34px 0 40px; font-size: 13px; }
.site-footer h4 { font-size: 12px; color: var(--muted); margin-bottom: 10px; letter-spacing: 0.06em; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--link); }
.site-footer .legal { margin-top: 26px; color: var(--muted); font-size: 11.5px; line-height: 1.9; }

@media (max-width: 640px) {
  .tk-ll, .tk-axis-label { width: 106px; font-size: 11px; }
  .tk-chart { min-width: 640px; }
  .logo { font-size: 17px; }
  .nav-eki { font-size: 11px; padding: 5px 10px; }
}

@media print {
  .site-header, .pr-note, .nav-eki, .theme-toggle { display: none; }
}
