/* Notes pages only. Layout does not alter the shared navigation.
   Typography adjusted to align with About JP (.conceptjp).
   Width 540px includes 20px side padding -> content width max 500px. */
body.notes-page {
  color: #777;
  background: #fff;
  font-family: "Inter", "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
}
body.notes-page #contents { padding-top: clamp(28px, 5svh, 65px); padding-bottom: 0; }
body.notes-page .notes-main {
  box-sizing: border-box;
  max-width: 540px;
  margin: 34px auto 0;
  padding: 0 20px;
  font-size: 11px;
  line-height: 2.3;
  overflow-wrap: anywhere;
}
body.notes-page .notes-heading { text-align: center; margin: 0 0 66px; }
body.notes-page .notes-heading h1 {
  font-weight: 300; font-size: 16px; line-height: 1.5; margin: 0 0 5px;
  letter-spacing: .03em;
}
body.notes-page .notes-heading p {
  font-size: 9.5px; line-height: 1.6; margin: 0; color: #999;
}
body.notes-page .notes-article { margin: 0 0 70px; }
body.notes-page .notes-date { color: #aaa; font-size: 9.5px; letter-spacing: .04em; }
body.notes-page .notes-title {
  font-size: 16px; font-weight: 300; line-height: 1.6; margin: 9px 0 20px;
}
body.notes-page .notes-title a,
body.notes-page .notes-list-link,
body.notes-page .notes-article-nav a { color: #777; text-decoration: none; }
body.notes-page a:hover { color: #333; }
body.notes-page .notes-excerpt { margin: 0 0 13px; }
body.notes-page .notes-list-link { font-size: 10px; color: #999; }
body.notes-page .notes-rule { border: 0; border-top: 1px dotted #ccc; margin: 0 0 64px; }
/* Match About JP (.conceptjp): 11px / 2.3 line height / 500px text column.
   Article titles remain larger to preserve their hierarchy. */
body.notes-page .notes-excerpt,
body.notes-page .notes-prose {
  font-weight: 400;
  text-align: justify;
  text-justify: inter-ideograph;
}
body.notes-page .notes-prose p { margin: 0 0 1.5em; }
body.notes-page .notes-prose h2 { font-size: 14px; font-weight: 400; margin: 2.4em 0 .8em; }
body.notes-page .notes-prose h3 { font-size: 12px; font-weight: 400; margin: 2em 0 .7em; }
body.notes-page .notes-prose img { max-width: 100%; height: auto; display: block; margin: 32px auto; }
body.notes-page .notes-prose a { text-decoration: underline; text-underline-offset: 3px; }
body.notes-page .notes-prose blockquote { margin: 2em 0; border-left: 1px solid #bbb; padding-left: 18px; }
body.notes-page .notes-prose ul,
body.notes-page .notes-prose ol { padding-left: 1.6em; }
body.notes-page .notes-article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin: 72px 0 0; font-size: 10px; }
body.notes-page .notes-archive-links { margin: 65px 0 0; text-align: center; font-size: 9.5px; line-height: 2; }
body.notes-page .notes-archive-links a { color: #999; margin: 0 8px; white-space: nowrap; }
body.notes-page .notes-draft { border: 1px solid #ddd; padding: 9px 12px; text-align: center; font-size: 10px; color: #888; margin-bottom: 30px; }
body.notes-page #footer {
  box-sizing: border-box;
  width: 100%; height: auto; display: block; margin: 90px 0 0;
  padding: 0 20px 20px; text-align: right; color: #999;
  font-size: 13px; line-height: 1.6;
}
body.notes-page #footer a { color: inherit; text-decoration: none; }
@media (max-width: 699px) {
  body.notes-page .notes-main { margin-top: 25px; font-size: 11px; line-height: 2.3; }
  body.notes-page .notes-heading { margin-bottom: 56px; }
  body.notes-page .notes-article { margin-bottom: 54px; }
  body.notes-page .notes-rule { margin-bottom: 52px; }
}

/* Migrated article photographs and captions */
body.notes-page .notes-prose p > a:has(> img) { display: block; }
body.notes-page .notes-prose p > a > img { max-width: 100%; height: auto; }
