:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#2563eb;
  --max:860px;
  --radius:14px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system,
               "Hiragino Sans","Hiragino Kaku Gothic ProN",
               "メイリオ",Meiryo,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.8;
}

a{ color:inherit; text-decoration:none; }

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
}

/* ヘッダー */
header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  z-index:10;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:60px;
}

.site strong{ font-size:16px; }
.site span{ font-size:12px; color:var(--muted); }

.btn{
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  font-weight:700;
  font-size:13px;
}

/* メイン */
main{ padding:18px 0 60px; }

h1{
  margin:10px 0 8px;
  font-size:clamp(20px,4.8vw,28px);
  font-weight:900;
}

.lead{
  margin:0 0 16px;
  font-size:14px;
  color:var(--muted);
}

/* 一覧 */
.list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.list li a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  font-weight:800;
}

.list li a:hover{
  background:#f3f4f6;
}

/* 画像 */
.num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
}
figure {
  margin: 1.2em 0;
}

figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.4em;
}

.note {
  margin-top: 0.5em;
}


/* 画面いっぱいに広げる */
figure.full {
  margin: 1.8em auto;
  text-align: center;
}

figure.full img {
  max-width: 100%;      /* 画面幅には収める */
  width: auto;          /* 原寸を尊重 */
  height: auto;
  display: inline-block;
}

/* キャプションは読みやすい幅に */
figure.full figcaption {
  max-width: 900px;
  margin: 0.6em auto 0;
  padding: 0 1em;
  font-size: 0.9em;
  color: #666;
}
/* ===== 東海道一覧（tall.html） 追記 ===== */

/* ヘッダー（tall.htmlで使っているclass名に対応） */
.site-header .container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:60px;
  gap:14px;
}
.site-brand{ font-weight:900; letter-spacing:.02em; }
.site-nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  font-weight:700;
  font-size:13px;
}
.site-nav a{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.site-nav a[aria-current="page"]{
  border-color:var(--line);
  background:#f3f4f6;
}

/* ページ見出し */
.page{ padding: 14px 0 0; }
.page-header{ margin-bottom: 10px; }
.page-title{ margin: 10px 0 6px; }
.page-lead{ margin:0 0 8px; color:var(--muted); font-size:14px; }

/* カード */
.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  padding:14px;
  margin:14px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

/* タグ */
.tag{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
  margin:2px 6px 2px 0;
  white-space:nowrap;
}

/* 検索UI */
.controls-row{
  display:grid;
  gap:10px;
}
.search input{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:14px;
}
.controls .btn{ width:max-content; }
.controls-hint{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}

/* テーブル */
.table-wrap{
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border:1px solid var(--line);
}
.list-table{
  width:100%;
  border-collapse: separate;
  border-spacing:0;
  min-width: 860px; /* 横スクロールしても崩れない */
  font-size:13px;
}
.list-table thead th{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  text-align:left;
  border-bottom:1px solid var(--line);
  padding:10px 10px;
  font-size:12px;
  color:#374151;
}
.list-table tbody td{
  border-bottom:1px solid var(--line);
  padding:10px 10px;
  vertical-align:top;
}
.list-table tbody tr:nth-child(2n){
  background:#fafafa;
}
.list-table tbody tr:hover{
  background:#f3f4f6;
}

/* モバイル：横スクロール前提＋情報の見出しを付ける（data-label） */
@media (max-width: 720px){
  .site-header .container{ align-items:flex-start; padding-top:10px; padding-bottom:10px; }
  .site-nav{ gap:8px; }
  .list-table{ min-width: 980px; }
}

/* sr-only */
.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;
}
