/* 駅名スタンプ カタログ — モバイルファースト */
:root {
  --navy: #123a5f;
  --navy-dark: #0d2b47;
  --green: #2e7d32;
  --green-light: #e8f5e9;
  --line-green: #06c755;
  --bg: #faf8f4;
  --card: #ffffff;
  --border: #e3ded3;
  --text: #222222;
  --muted: #666666;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: anywhere;
}
a { color: var(--navy); }
a:visited { color: #4a3a6b; }
img { max-width: 100%; height: auto; }

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 20px 0 24px;
  border-bottom: 6px solid var(--green);
}
.site-header a { color: #fff; text-decoration: none; }
.site-title { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.4; }
.site-tagline { margin: 6px 0 0; font-size: 0.95rem; opacity: 0.85; }

.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 28px; padding-bottom: 48px; }

h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 16px; }
h2 {
  font-size: 1.25rem; line-height: 1.5;
  margin: 48px 0 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
}
h3 { font-size: 1.1rem; margin: 32px 0 12px; }
p { margin: 0 0 16px; }

.hero { margin: 0 0 8px; }
.hero img { width: 100%; border-radius: var(--radius); display: block; }
.credit { font-size: 0.8rem; color: var(--muted); margin: 0 0 24px; line-height: 1.6; }
.credit a { color: var(--muted); }

/* 路線の基本情報 */
.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 8px;
}
.info-box dl { margin: 0; }
.info-box dt { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.info-box dd { margin: 0 0 12px; }
.info-box dd:last-child { margin-bottom: 0; }

/* 観光地リスト */
.spot-list { list-style: none; margin: 0; padding: 0; }
.spot-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.spot-station { color: var(--muted); font-size: 0.9rem; }

/* 観光地写真 */
.spot-photo { margin: 20px 0 8px; }
.spot-photo img { width: 100%; border-radius: var(--radius); display: block; }
.spot-photo figcaption { margin-top: 8px; line-height: 1.6; }
.spot-label { font-weight: 700; display: block; }
.spot-photo .credit { display: block; margin: 2px 0 0; }

/* 商品カード */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.product-name { font-weight: 700; font-size: 1.05rem; margin: 0 0 10px; line-height: 1.6; }
.badge {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
  margin-right: 6px; vertical-align: middle;
}
.badge-type { background: var(--green-light); color: var(--green); }
.badge-premium { background: #fff3e0; color: #e65100; }
.product-price { font-size: 1.1rem; font-weight: 700; margin: 0 0 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  background: var(--line-green); color: #fff !important;
  font-weight: 700; text-decoration: none;
  border-radius: 8px; font-size: 1rem;
}
.btn:hover { opacity: 0.9; }
.btn-secondary { background: var(--navy); }

/* トップ: 路線一覧 */
.line-list { list-style: none; margin: 0; padding: 0; }
.line-list li { margin-bottom: 10px; }
.line-list a {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  min-height: 52px; padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--text); font-weight: 700;
}
.line-list a:hover { border-color: var(--green); }
.line-count {
  flex-shrink: 0;
  font-size: 0.85rem; font-weight: 400; color: var(--muted);
  background: var(--bg); border-radius: 999px; padding: 2px 10px;
}

/* 検索 */
.search-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 8px;
}
.search-box label { display: block; font-weight: 700; margin: 0 0 6px; }
.search-box input[type="search"],
.search-box select {
  width: 100%; min-height: 52px;
  font-size: 16px; padding: 12px 14px;
  border: 1px solid #bbb; border-radius: 8px;
  background: #fff; margin-bottom: 16px;
}
.search-box select { margin-bottom: 0; }
.search-hint { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }
#search-results { margin-top: 20px; }
.result-count { font-weight: 700; margin: 0 0 12px; }
.no-result { color: var(--muted); margin: 0; }
.result-meta { font-size: 0.85rem; font-weight: 400; color: var(--muted); display: block; }

.site-footer {
  background: var(--navy-dark); color: #ddd;
  padding: 32px 0 40px; font-size: 0.9rem; line-height: 1.8;
}
.site-footer a { color: #fff; }
.back-link { display: inline-block; min-height: 44px; line-height: 44px; }

/* デスクトップ: 2カラムで一覧を見やすく */
@media (min-width: 768px) {
  .container { max-width: 960px; }
  .site-title { font-size: 1.8rem; }
  h1 { font-size: 2rem; }
  .line-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .search-row { display: flex; gap: 16px; }
  .search-row > div { flex: 1; }
  .search-box input[type="search"], .search-box select { margin-bottom: 0; }
}
