:root {
  --bg: #fff8f5;
  --surface: #ffffff;
  --surface-alt: #fff3ee;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --accent: #e6a4b4;
  --accent-strong: #d77a8e;
  --link: #3a7ca5;
  --header-border: #f3d8de;
  --border: #efd9df;
  --must: #d77a8e;
  --should: #e6a4b4;
  --may: #c0c0c0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}
a { color: var(--link); }

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* header / footer */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--header-border);
  padding: 16px 0;
}
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-logo { display: block; }
.tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}
.site-footer {
  border-top: 1px solid var(--header-border);
  background: var(--surface);
  padding: 24px 16px;
  margin-top: 48px;
  text-align: center;
}
.site-footer nav a {
  margin: 0 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.site-footer small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-header {
  margin: 16px 0 24px;
}
.page-header .lead {
  color: var(--muted);
}

h1 { font-size: 26px; line-height: 1.4; margin: 12px 0; }
h2.section-title {
  font-size: 20px;
  margin: 12px 0;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
h3 { font-size: 16px; margin: 16px 0 8px; }

.lead {
  font-size: 15px;
  color: var(--muted);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  margin: 12px 0 16px;
  background: linear-gradient(135deg, #fff8f5 0%, #fff5f9 60%, #fff1d9 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.4;
}
.hero .lead {
  margin: 0 0 10px;
  font-size: 13px;
}
.hero-illust {
  width: 100px;
  height: auto;
  max-width: 25%;
  flex-shrink: 0;
}
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
}
.hero-stats strong {
  font-size: 13px;
  color: var(--accent-strong);
}

/* month grid */
.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.month-card {
  display: block;
  padding: 16px;
  background: var(--surface);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: transform .1s ease, box-shadow .1s ease;
}
.month-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.month-card h3 { margin: 0 0 8px; font-size: 15px; }
.month-card-stat { margin: 4px 0; font-size: 12px; color: var(--muted); }
.month-card-newborn .month-card-stage,
.month-card-infant .month-card-stage,
.month-card-toddler .month-card-stage,
.month-card-pre-schooler .month-card-stage { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 999px; margin-bottom: 6px; }
.month-card-newborn .month-card-stage { background: #fde6ec; color: var(--accent-strong); }
.month-card-infant .month-card-stage { background: #fff1d9; color: #b07b00; }
.month-card-toddler .month-card-stage { background: #e6f0fb; color: #3a7ca5; }
.month-card-pre-schooler .month-card-stage { background: #f3eaf7; color: #6b3f8c; }

/* category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.category-card {
  display: block;
  padding: 14px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease, border-color .1s ease;
}
.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.category-card h3 { margin: 0 0 4px; font-size: 14px; color: var(--accent-strong); }
.category-card p { margin: 0; color: var(--muted); font-size: 12px; }

/* month nav */
.month-nav {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 24px;
  font-size: 14px;
}
.month-nav a {
  color: var(--accent-strong);
  text-decoration: none;
  padding: 6px 12px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* milestone */
.milestone-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.milestone-item {
  background: var(--surface);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.milestone-item strong { display: inline-block; margin-right: 6px; }
.milestone-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.milestone-typical { border-left: 4px solid var(--accent); }
.milestone-early { border-left: 4px solid #8cc1d6; }
.milestone-late { border-left: 4px solid #b6b6b6; }

/* badges */
.badge {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: #f0e3e8;
  color: var(--accent-strong);
  margin-right: 4px;
  vertical-align: middle;
}
.badge-new { background: var(--accent); color: #fff; }
.badge-end { background: #d3d3d3; color: #333; }
.badge-physical { background: #fde6ec; }
.badge-cognitive { background: #e6f0fb; color: #3a7ca5; }
.badge-social { background: #fff1d9; color: #b07b00; }
.badge-language { background: #e7f5ec; color: #2f7a47; }
.badge-feeding { background: #f7e9d8; color: #8b5a2b; }
.badge-prev-early { background: #e6f0fb; color: #3a7ca5; }
.badge-prev-late { background: #ededed; color: #555; }

/* accordion */
.acc {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 8px 0;
  background: var(--surface);
  overflow: hidden;
}
.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  user-select: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::marker { content: ""; }
.acc summary:hover { background: var(--surface-alt); }
.acc[open] > summary {
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.acc-cat {
  color: var(--accent-strong);
}
.acc-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.acc-arrow {
  margin-left: auto;
  color: var(--muted);
  transition: transform .15s ease;
  font-size: 12px;
}
.acc[open] > summary .acc-arrow { transform: rotate(180deg); }
.acc > .milestone-list,
.acc > .need-list,
.acc > .item-grid { padding: 12px 14px; margin: 0; }

/* needs */
.need-group-title {
  margin-top: 24px;
  font-size: 15px;
  color: var(--accent-strong);
}
.need-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
}
.need-list li {
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.need-list li a { text-decoration: none; }
.importance {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.importance-must { background: var(--must); color: #fff; }
.importance-should { background: var(--should); color: #fff; }
.importance-may { background: var(--may); color: #fff; }
.necessity { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-top: 6px; color: #fff; }
.necessity-must { background: var(--must); }
.necessity-should { background: var(--should); }
.necessity-may { background: var(--may); }

/* items */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.item-card {
  display: block;
  padding: 14px;
  background: var(--surface);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
}
.item-card h4 { margin: 0 0 6px; font-size: 14px; color: var(--accent-strong); }
.item-card p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.item-card .price { margin-top: 8px; font-weight: 600; color: var(--text); font-size: 13px; }

/* chip-style links (parent / child / related need) */
.related-parent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
}
.related-label {
  font-size: 12px;
  color: var(--muted);
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .1s ease, background .1s ease, transform .1s ease;
}
.chip-link:hover {
  border-color: var(--accent);
  background: var(--surface-alt);
  transform: translateY(-1px);
}
.chip-icon {
  font-size: 11px;
  color: var(--accent-strong);
}
.chip-parent {
  background: var(--surface-alt);
  color: var(--accent-strong);
  border-color: var(--accent);
}
.chip-child {
  background: #fff;
}

/* period range display */
.period-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.period-range {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 15px;
}
.period-month {
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
}
.period-month:hover { text-decoration: underline; }
.period-sep { color: var(--muted); font-weight: 600; }
.period-once { color: var(--muted); font-size: 13px; }

/* timeline */
.month-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.timeline-cell {
  padding: 4px 8px;
  font-size: 11px;
  background: #ededed;
  border-radius: 6px;
  text-decoration: none;
  color: #888;
}
.timeline-cell.active { background: var(--accent); color: #fff; font-weight: 600; }
.timeline-cell.start { outline: 2px solid var(--accent-strong); }
.timeline-cell.end { outline: 2px dashed #888; }

.note {
  background: var(--surface-alt);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}
.rental-note {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  background: #e7f5ec;
  color: #2f7a47;
  border-radius: 4px;
}
.price {
  font-weight: 600;
}

.static-page {
  background: var(--surface);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* filter section */
.filter-section {
  background: var(--surface);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 16px 0;
}
.filter-section .section-title { margin-top: 0; margin-bottom: 6px; }
.filter-help {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}
.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: end;
}
.filter-controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.filter-controls select,
.filter-controls input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  width: 100%;
}
.filter-controls select:focus,
.filter-controls input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.filter-q-label { grid-column: 1 / -1; }
.filter-meta {
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.filter-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.filter-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}
.filter-result:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.filter-result-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.filter-result-title {
  font-weight: 600;
  font-size: 14px;
}
.filter-result-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
}
.chip-month { background: #fff; color: var(--accent-strong); border-color: var(--accent); }
.chip-kind-need { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip-kind-milestone { background: #3a7ca5; color: #fff; border-color: #3a7ca5; }
.chip-cat-physical { background: #fde6ec; }
.chip-cat-cognitive { background: #e6f0fb; color: #3a7ca5; }
.chip-cat-social { background: #fff1d9; color: #b07b00; }
.chip-cat-language { background: #e7f5ec; color: #2f7a47; }
.chip-cat-feeding { background: #f7e9d8; color: #8b5a2b; }
.chip-cat-daily-care { background: #f3eaf7; color: #6b3f8c; }
.chip-cat-sleep { background: #e8eef7; color: #3a4a78; }
.chip-cat-health { background: #ffe8e0; color: #b54f30; }
.chip-cat-safety { background: #fff5d6; color: #8a6a00; }
.chip-cat-development { background: #def0e6; color: #2f7a47; }
.chip-cat-event { background: #fde6f4; color: #a23b8a; }
.chip-cat-preparation { background: #ecedf0; color: #555; }

/* ranking */
.ranking-section { margin-top: 32px; }
.ranking-list { list-style: none; padding: 0; counter-reset: rank; display: grid; gap: 14px; }
.ranking-item {
  display: grid;
  grid-template-columns: auto 140px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  align-items: start;
}
.ranking-body { min-width: 0; }
.ranking-1 { background: linear-gradient(135deg, #fff8f5, #fff1d9); border-color: #f7c948; }
.ranking-2 { background: linear-gradient(135deg, #fff8f5, #ecedf0); border-color: #c8c8c8; }
.ranking-3 { background: linear-gradient(135deg, #fff8f5, #f7e9d8); border-color: #d4a574; }
.ranking-rank {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-strong);
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 64px;
  text-align: center;
  height: fit-content;
}
.ranking-1 .ranking-rank { color: #b07b00; border-color: #f7c948; background: #fffbf0; }
.ranking-2 .ranking-rank { color: #555; border-color: #c8c8c8; background: #fff; }
.ranking-3 .ranking-rank { color: #8b5a2b; border-color: #d4a574; background: #fff; }
.ranking-image { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--border); }
.ranking-body h3.ranking-name { margin: 0 0 4px; font-size: 16px; }
.ranking-brand { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.ranking-catch { font-weight: 600; color: var(--accent-strong); margin: 6px 0; font-size: 14px; }
.ranking-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; align-items: baseline; margin: 8px 0; }
.ranking-stars { color: #f7a948; font-weight: 700; }
.ranking-reviews { color: var(--muted); font-size: 12px; }
.ranking-price { font-weight: 700; color: var(--text); }
.ranking-reason { background: rgba(255,255,255,.7); border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-size: 13px; line-height: 1.6; color: var(--text); }
.ranking-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cta-btn { display: inline-block; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; }
.cta-rakuten { background: #bf0000; color: #fff; }
.cta-rakuten:hover { background: #a00000; }
.cta-amazon { background: #ff9900; color: #fff; }
.cta-amazon:hover { background: #e68a00; }

/* comparison table */
.comparison-section { margin-top: 32px; }
.comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.comparison-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13px; }
.comparison-table th, .comparison-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: top; }
.comparison-table th:last-child, .comparison-table td:last-child { border-right: 0; }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table thead th { background: var(--surface-alt); font-weight: 700; }
.comp-axis-col { width: 120px; min-width: 120px; }
.comp-product-col { min-width: 130px; }
.comp-th-rank { font-size: 11px; color: var(--accent-strong); font-weight: 700; }
.comp-th-name { font-size: 13px; line-height: 1.4; }
.comp-th-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2px;
  border-radius: 4px;
  transition: background .1s ease;
}
.comp-th-link:hover {
  background: var(--surface-alt);
}
.comp-th-link:hover .comp-th-name {
  color: var(--accent-strong);
  text-decoration: underline;
}
/* anchor target offset (so sticky header doesn't cover) */
.ranking-item { scroll-margin-top: 16px; }
.comparison-table tbody th { background: #fff8f5; font-weight: 600; color: var(--muted); width: 120px; min-width: 120px; }

@media (max-width: 880px) {
  .ranking-item { grid-template-columns: auto 100px minmax(0, 1fr); }
  .ranking-image { width: 100px; height: 100px; }
}
@media (max-width: 600px) {
  .ranking-item { grid-template-columns: 60px minmax(0, 1fr); }
  .ranking-image { width: 100%; height: 160px; grid-column: 1 / -1; order: -1; }
  .ranking-rank { width: fit-content; min-width: 50px; padding: 4px 8px; font-size: 14px; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; padding: 16px 16px; gap: 8px; }
  .hero-illust { display: none; }
}
/* timeline 3-month sliding view */
.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.timeline-header .section-title { margin: 0; }
.age-pick {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.age-pick-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-row-months {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 4px;
  width: 100%;
}
.age-chip, .month-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all .12s ease;
}
.age-chip:hover, .month-chip:hover {
  border-color: var(--accent);
  background: var(--surface-alt);
}
.age-chip.active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  font-weight: 600;
}
.month-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.month-chip {
  font-size: 12px;
  padding: 5px 10px;
}
.timeline-help {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 14px;
}
.timeline-period {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}
.timeline-period strong {
  color: var(--accent-strong);
  font-size: 14px;
  margin-left: 4px;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.timeline-scroll-hint { display: none; font-size: 11px; color: var(--muted); text-align: right; }
.tl-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl-col-head {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.tl-month {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-strong);
  text-decoration: none;
}
.tl-month:hover { text-decoration: underline; }
.tl-h3 {
  font-size: 12px;
  margin: 0 0 6px;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-weight: 700;
}
.tl-h3-ms { border-left-color: #3a7ca5; }
.tl-h3-need { border-left-color: var(--accent-strong); }
.tl-h3-item { border-left-color: #8b5a2b; }
.tl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-list li {
  font-size: 12px;
  line-height: 1.4;
}
.tl-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .1s ease, background .1s ease, transform .1s ease;
}
.tl-link:hover, .tl-link:active {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
}
.tl-link-text { flex: 1; min-width: 0; word-break: break-word; }
.tl-arrow {
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
}
.tl-empty { color: var(--muted); font-style: italic; padding: 6px 0; }
.tl-etc { color: var(--muted); font-size: 11px; padding: 4px 0 0; text-align: right; }
.tl-pill {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 999px;
  background: #ededed;
  color: var(--muted);
}
.tl-pill-must { background: var(--must); color: #fff; }
.tl-pill-should { background: var(--should); color: #fff; }
.tl-pill-may { background: var(--may); color: #fff; }
.tl-pill-prev-early { background: #e6f0fb; color: #3a7ca5; }
.tl-pill-prev-late { background: #ededed; color: #555; }
.tl-more {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 6px 8px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--accent-strong);
  text-decoration: none;
}

@media (max-width: 720px) {
  /* mobile: 横スクロールで3ヶ月見える(1ヶ月+α画面に表示) */
  .timeline-grid {
    grid-template-columns: unset;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 12px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
  }
  .tl-col {
    scroll-snap-align: start;
  }
  .timeline-scroll-hint { display: block; }
}
@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .hero h1 { font-size: 16px; }
  h2.section-title { font-size: 16px; }
  .filter-controls { grid-template-columns: 1fr 1fr; }
  .filter-q-label { grid-column: 1 / -1; }
  .tl-col { padding: 10px; }
  .tl-month { font-size: 14px; }
  .tl-h3 { font-size: 11px; }
  .tl-list li { font-size: 11px; }
}
