:root {
  --bg: #ffffff;
  --ink: #24272b;
  --muted: #68707a;
  --line: #dfe4ea;
  --accent: #1f7194;
  --link: #006c8f;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho",
    "Noto Serif JP", serif;
  line-height: 1.78;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

.notes-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.notes-header {
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.group-name {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.notes-title {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.65rem, 8vw, 2.7rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.lead {
  max-width: 42rem;
  margin: 18px auto 0;
  color: var(--muted);
  text-align: center;
}

.notes-layout {
  display: grid;
  gap: 34px;
}

.notes-sidebar {
  display: grid;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.notes-sidebar h2,
.notes-main h2 {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 12px;
}

.search-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-label input {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.filter-button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.notes-main {
  display: grid;
  gap: 22px;
}

.note-card {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 16px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.note-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  order: 2;
}

.note-card > div {
  min-width: 0;
}

.note-date,
.tag-line,
.no-results {
  color: var(--muted);
  font-size: 0.9rem;
}

.note-date,
.tag-line {
  margin: 0 0 4px;
}

.note-card h2 {
  margin-bottom: 8px;
}

.note-card p {
  margin: 0 0 0.65em;
}

.post-body {
  max-width: 42rem;
  margin: 0 auto;
}

.post-body p {
  margin: 0 0 1em;
}

.notes-footer {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.footer-name {
  margin: 0 0 4px;
  text-align: center;
}

.footer-updated {
  margin: 0;
  text-align: right;
}

@media (min-width: 820px) {
  .notes-page {
    padding: 34px 24px 60px;
  }

  .notes-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }

  .notes-sidebar {
    position: sticky;
    top: 24px;
    padding-right: 22px;
    padding-bottom: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}
