html { scroll-behavior: smooth; }

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.52);
  color: #40564a;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after { display: none; }
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: #10231b;
  color: #ffffff;
}

.clickable-card {
  position: relative;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.clickable-card::after {
  content: '↗';
  position: absolute;
  top: 14px;
  right: 16px;
  opacity: 0;
  transform: translate(-4px, 4px);
  color: #477c59;
  font-size: 0.95rem;
  font-weight: 950;
  transition: opacity 160ms ease, transform 160ms ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(71, 124, 89, 0.38);
  box-shadow: 0 20px 48px rgba(21, 50, 37, 0.13);
  background: #ffffff;
  outline: none;
}

.clickable-card:hover::after,
.clickable-card:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.card-action-hint {
  display: block;
  margin-top: 12px;
  color: #477c59;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.2;
}

.status-breakdown li,
.guide-list li {
  gap: 12px;
  column-gap: 12px;
  line-height: 1.5;
}

.status-breakdown li span:first-child,
.guide-list li span:first-child {
  flex: 0 0 1.25em;
  min-width: 1.25em;
  text-align: center;
}

.threshold-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.threshold-card {
  border: 1px solid rgba(16, 35, 27, 0.1);
  border-radius: 20px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(21, 50, 37, 0.07);
}

.threshold-card span {
  display: block;
  margin-bottom: 8px;
  color: #607367;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.threshold-card strong {
  display: block;
  color: #10231b;
  font-size: 1.25rem;
  line-height: 1.1;
}

.threshold-card p {
  margin: 10px 0 0;
  color: #40564a;
  line-height: 1.5;
  font-weight: 800;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.reason-item { min-width: 0; }
.reason-item span,
.reason-item strong,
.reason-item p { display: block; }
.reason-item span { margin-bottom: 8px; }
.reason-item strong {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.result-card { grid-column: 1 / -1; }

.weather-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: #10231b;
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(21, 50, 37, 0.10);
}

@media (max-width: 960px) {
  .threshold-grid,
  .reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .threshold-grid,
  .reason-grid { grid-template-columns: 1fr; }
}
