/**
 * 2026年 首長選挙スケジュールページ用スタイル
 */

:root {
  --page-content-max-width: 1100px;
  --page-content-padding: 16px;
}

.schedule-container {
  max-width: var(--page-content-max-width);
  margin: 0 auto;
  padding: 24px var(--page-content-padding) 60px;
}

.schedule-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
}

.schedule-meta-item {
  border: 1px solid #e4e4e4;
  background: #fff;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.schedule-meta-label {
  font-size: 0.78rem;
  color: #667085;
  font-weight: 600;
}

.schedule-meta-item strong {
  font-size: 1rem;
  color: #1f2937;
}

.schedule-source-link {
  border: 1px solid #2d8a6e;
  color: #2d8a6e;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3fbf8;
  transition: background-color 0.15s ease;
}

.schedule-source-link:hover {
  background: #e7f7f1;
}

.schedule-filter-section {
  margin-top: 18px;
}

.schedule-filter-row {
  align-items: end;
  gap: 10px;
}

.schedule-filter-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #64748b;
}

.schedule-week-nav {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-week-nav--top {
  justify-content: flex-end;
}

.schedule-week-nav--bottom {
  justify-content: center;
  margin-top: 12px;
}

.schedule-next-marker {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.schedule-next-marker:hover {
  background: #f8fafc;
}

.schedule-next-marker:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.schedule-week-range {
  margin: 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.schedule-list {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.schedule-day-group {
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 14px;
}

.schedule-day-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.schedule-day-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.schedule-day-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475467;
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  border-radius: 999px;
  padding: 3px 8px;
}

.schedule-day-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-left: 3px solid #2d8a6e;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.schedule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.schedule-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #111827;
}

.schedule-card-meta {
  margin: 0;
  color: #475467;
  font-size: 0.84rem;
}

.schedule-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.schedule-chip--confirmed {
  color: #065f46;
  background: #d1fae5;
}

.schedule-chip--undecided {
  color: #7c2d12;
  background: #ffedd5;
}

.schedule-dates {
  margin: 0;
  display: grid;
  gap: 5px;
}

.schedule-date-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  font-size: 0.84rem;
}

.schedule-date-row dt {
  color: #64748b;
}

.schedule-date-row dd {
  margin: 0;
  color: #111827;
  font-weight: 600;
}

.schedule-date-row--main dt,
.schedule-date-row--main dd {
  color: #0f172a;
  font-weight: 800;
}

.schedule-empty {
  grid-column: 1 / -1;
  border: 1px dashed #d0d5dd;
  background: #fcfcfd;
  color: #475467;
  padding: 20px;
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .schedule-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-source-link {
    grid-column: span 2;
    height: 42px;
  }
}

@media (max-width: 900px) {
  .schedule-day-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .schedule-container {
    padding: 20px 12px 52px;
  }

  .schedule-meta {
    grid-template-columns: 1fr;
  }

  .schedule-source-link {
    grid-column: auto;
    height: 40px;
  }

  .schedule-filter-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .schedule-week-nav {
    justify-content: center;
  }

  .schedule-week-nav--top {
    justify-content: space-between;
  }

  .schedule-date-row {
    grid-template-columns: 100px 1fr;
  }
}
