/* 山口隆・記録送付経路時系列（R6補助資料） */
.route-intro {
  padding: 16px 19px;
  margin: 18px 0 22px;
  border: 1px solid #b8c4ae;
  border-left: 4px solid #526f4d;
  background: #f4f7ef;
  color: #344434;
  font-size: 13px;
  line-height: 1.95;
}
.route-intro strong { color: #30452e; }
.route-key {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0 24px;
}
.route-key-item {
  min-height: 100%;
  padding: 9px 10px;
  border: 1px solid #c7c2ae;
  background: #fffdf7;
  color: #544a38;
  font-size: 11px;
  line-height: 1.65;
}
.route-key-item b { display: block; margin-bottom: 3px; color: #3f563b; font-size: 12px; }
.route-key-item .route-tag { margin: 0 0 5px; }
.route-tag {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid currentColor;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .05em;
  white-space: nowrap;
}
.route-tag.multi { color: #3f693a; }
.route-tag.direct { color: #315e7b; }
.route-tag.single { color: #76552f; }
.route-tag.rebuilt { color: #8a4740; }
.route-route {
  position: relative;
  margin: 10px 0 28px 12px;
  padding-left: 26px;
  border-left: 2px solid #73866b;
}
.route-entry {
  position: relative;
  margin: 0 0 20px;
  padding: 15px 16px;
  border: 1px solid #c7c0ae;
  background: #fffdf8;
  box-shadow: 0 1px 2px rgba(48, 38, 22, .05);
}
.route-entry::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: -35px;
  top: 19px;
  border: 3px solid #f7f4ed;
  border-radius: 50%;
  background: #657a5d;
  box-shadow: 0 0 0 1px #657a5d;
}
.route-entry.is-direct::before { background: #426d86; box-shadow: 0 0 0 1px #426d86; }
.route-entry.is-single::before { background: #9c7340; box-shadow: 0 0 0 1px #9c7340; }
.route-entry.is-rebuilt::before { background: #99554b; box-shadow: 0 0 0 1px #99554b; }
.route-entry h2 {
  margin: 6px 0 9px;
  color: #3a2f20;
  font-size: 16px;
  line-height: 1.55;
}
.route-time {
  color: #7d251e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: bold;
}
.route-entry p { margin: 8px 0; color: #4f4432; font-size: 13px; line-height: 1.9; }
.route-entry .route-limit {
  padding: 8px 10px;
  margin: 11px 0 0;
  border-left: 3px solid #a77a50;
  background: #f6f0e5;
  color: #66523c;
  font-size: 12px;
  line-height: 1.8;
}
.route-sources { margin: 10px 0 0; color: #5f5039; font-size: 12px; line-height: 1.8; }
.route-sources a { color: #4b613d; text-decoration: underline; text-underline-offset: 2px; }
.route-sources a:hover { color: #7d251e; }
.route-sources a:focus-visible,
.route-links a:focus-visible { outline: 3px solid #8b1a1a; outline-offset: 3px; }
.route-table-wrap { overflow-x: auto; margin: 18px 0 22px; }
.route-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; }
.route-table caption { padding: 10px 12px; border: 1px solid #bdc8b5; border-bottom: 0; background: #e7eee3; color: #334834; text-align: left; font-weight: bold; }
.route-table th,.route-table td { padding: 9px 10px; border: 1px solid #c9c2af; text-align: left; vertical-align: top; line-height: 1.75; }
.route-table th { background: #eee9dc; color: #3d3425; font-weight: normal; }
.route-table td:first-child { width: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #7d251e; white-space: nowrap; }
.route-table td:nth-child(2) { width: 145px; color: #4f633f; }
.route-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.route-links a { padding: 8px 10px; border: 1px solid #b6c0ac; background: #f6f8f1; color: #3d543b; font-size: 12px; text-decoration: none; }
.route-links a:hover { background: #3d543b; color: #f8fbf5; }
@media (max-width: 720px) {
  .route-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-route { margin-left: 8px; padding-left: 19px; }
  .route-entry { padding: 13px; }
  .route-entry::before { left: -29px; }
}
@media (max-width: 440px) { .route-key { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .route-sources a,.route-links a { transition: none; } }
