*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

#sv {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  color: #1a1a1a;
}

.sv-head { text-align: center; margin-bottom: 36px; }
.sv-head h1 { font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; }
.sv-head p { font-size: .88rem; color: #666; line-height: 1.7; }

.sv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #eee;
}

.sv-filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 140px; }
.sv-filter-label { font-size: .72rem; font-weight: 700; color: #777; letter-spacing: .1em; text-transform: uppercase; }
.sv-filter-opts { display: flex; flex-wrap: wrap; gap: 6px; }

.sv-fopt {
  padding: 5px 12px;
  border: 1.5px solid #e0ddd8;
  border-radius: 20px;
  font-size: .76rem;
  cursor: pointer;
  background: #fff;
  font-family: inherit;
  color: #555;
  transition: all .15s;
}
.sv-fopt:hover { border-color: #b5763a; color: #b5763a; }
.sv-fopt.active { border-color: #b5763a; background: #faf3eb; color: #b5763a; font-weight: 700; }

.sv-count {
  font-size: .82rem;
  color: #888;
  margin-bottom: 16px;
}

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

.sv-card {
  background: #fff;
  border: 1px solid #e8e3dc;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.sv-card:hover { border-color: #b5763a; box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.sv-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sv-tag {
  font-size: .65rem;
  padding: 2px 10px;
  border-radius: 20px;
  background: #faf3eb;
  color: #b5763a;
}
.sv-tag-care { background: #fff8e0; color: #b07000; }
.sv-tag-farewell { background: #fdecea; color: #c0392b; }
.sv-tag-loss { background: #f3eafb; color: #7b2d8b; }
.sv-tag-senior { background: #e0f0ff; color: #1a6090; }

.sv-card-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
}

.sv-card-excerpt {
  font-size: .82rem;
  color: #555;
  line-height: 1.8;
  flex: 1;
}

.sv-card-meta {
  display: flex;
  gap: 10px;
  font-size: .72rem;
  color: #999;
  padding-top: 12px;
  border-top: 1px solid #f0ede8;
}

.sv-card-link {
  font-size: .78rem;
  color: #b5763a;
  align-self: flex-start;
}
.sv-card-link:hover { text-decoration: underline; }

.sv-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: .88rem;
}

.sv-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: .85rem;
}

.sv-submit {
  margin-top: 48px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #faf3eb 0%, #f5eee3 100%);
  border-radius: 12px;
  text-align: center;
}
.sv-submit h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.sv-submit p { font-size: .82rem; color: #666; line-height: 1.7; margin-bottom: 18px; }
.sv-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: #b5763a;
  color: #fff;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background .15s;
  text-decoration: none;
}
.sv-submit-btn:hover { background: #9d6331; }

@media (max-width: 600px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-filters { gap: 14px; }
}