:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #dbe3ee;
  --primary: #0f766e;
  --primary-dark: #0b5e57;
  --accent: #e6fffb;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.7;
}

button{
  border: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.bland-link{
  color: #137f39;
}

.bland-link:hover{
  color: #137f39;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand .site-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand .site-sub {
  font-size: 0.95rem;
  opacity: 0.9;
}

.header-nav{
  background-color: #73c38f;
}

.navi-inner,.site-sub,.site-name{
  width: 1000px;
  margin: 0 auto;
}

.navi-inner {
  display: flex;
  flex-wrap: wrap;
}

.header-nav a {
  color: #fff;
  padding: 5px 14px;
  font-size: 0.95rem;
  background-color: #41a765;
}

.header-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

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

.hero {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.3;
}

.hero p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

.search-box {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.search-box input[type="text"] {
  flex: 1 1 320px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
}

.search-box button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.search-box button:hover {
  background: var(--primary-dark);
}

.search-examples,
.search-summary {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card {
  grid-column: span 12;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h1,
.card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.card h1 {
  font-size: 2rem;
  line-height: 1.3;
}

.card h2 {
  font-size: 1.35rem;
}

.card p {
  margin-top: 0;
  color: var(--muted);
}

.split-2 {
  grid-column: span 6;
}

.section-intro {
  margin-bottom: 16px;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list li a {
  display: block;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: 0.2s ease;
  color: var(--primary);
  font-weight: 600;
}

.link-list li a:hover {
  background: var(--accent);
  border-color: #99f6e4;
  text-decoration: none;
  transform: translateY(-1px);
}

.feature-list {
  padding-left: 1.2rem;
  margin: 0;
}

.feature-list li {
  margin-bottom: 8px;
}

.footer {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 20px 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-card .lead {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 24px;
}

.article-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-body {
  color: #374151;
}

.article-meta {
  margin-bottom: 8px;
}

.button-link {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 5px;
  font-weight: 700;
}

.button-link:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

.search-results {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.search-result-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fcfdff;
}

.search-result-item h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.result-type {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--primary-dark);
  background: var(--accent);
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
}

.empty-state {
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fafafa;
}

.header-user {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.auth-login-link {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.notice {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 16px 0;
}

.notice.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
}

.required {
  color: #dc2626;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f8fafc;
}

.actions {
  white-space: nowrap;
}

.button-link.small {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.button-link.danger {
  background: #dc2626;
}

.button-link.danger:hover {
  background: #b91c1c;
}

.breadcrumb {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #1d4ed8;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  display: inline-block;
  margin: 0 8px;
  color: #999;
}

.route-color-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 8px;
}

.route-color-choice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: 0.15s ease;
}

.route-color-choice:hover {
    border-color: #999;
}

.route-color-choice.is-selected {
    border-color: #d6001c;
    box-shadow: 0 0 0 2px rgba(214, 0, 28, 0.12);
}

.route-color-choice-swatch {
    display: inline-block;
    width: 110px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #ccc;
    flex: 0 0 auto;
}

.route-color-choice-name {
    font-size: 16px;
    color: #222;
    white-space: nowrap;
}

.leaflet-tile {
    filter: grayscale(40%) brightness(1.15) contrast(1) saturate(0.7);
}

.leaflet-tile-pane {
    opacity: 0.5;
}

@media (max-width: 900px) {
  .split-2 {
    grid-column: span 12;
  }

  .hero h1,
  .card h1 {
    font-size: 1.7rem;
  }
}