:root {
  color-scheme: light;
  --ink: #1d232a;
  --quiet: #525f6b;
  --blue: #155ca4;
  --line: #e0e5ea;
  --panel: #f3f5f7;
  --paper: #fff;
  font-family: "Noto Sans JP", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: anywhere; line-height: 1.5; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.frame { width: min(calc(100% - 5rem), 76rem); margin-inline: auto; }
.skip { position: fixed; z-index: 1; top: .55rem; left: .55rem; transform: translateY(-180%); padding: .6rem .8rem; background: var(--paper); }
.skip:focus { transform: none; }

.masthead { text-align: center; padding: 2.7rem 1.25rem 1.05rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-block; color: var(--blue); font-weight: 800; font-size: 2.7rem; line-height: 1.35; text-decoration: none; }
.keep { white-space: nowrap; }
.masthead nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 2.25rem; row-gap: .25rem; margin-top: 1.72rem; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--quiet); text-decoration: none; font-size: .92rem; font-weight: 600; border-bottom: 2px solid transparent; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--blue); border-bottom-color: var(--blue); }

.catalog, .more { background: var(--panel); padding-block: 2.62rem 3.5rem; }
.catalog h1, .more h2 { font-size: 1.2rem; font-weight: 720; margin-bottom: 1.25rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem; }
.card { min-width: 0; background: var(--paper); border: 1px solid #e5e9ed; border-radius: 6px; }
.card-picture { display: block; }
.card-picture img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px 5px 0 0; background: #e5eaee; }
.card-info { padding: 1.22rem 1.3rem 1.53rem; }
.meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem .75rem; }
.meta time { font-size: .87rem; color: var(--quiet); font-variant-numeric: tabular-nums; }
.topic { display: inline-block; font-size: .86rem; font-weight: 650; color: #165b9c; background: #e8f2fb; border-radius: 4px; padding: .1rem .52rem; text-decoration: none; }
.topic:hover { text-decoration: underline; }
.topic.experiments { color: #236351; background: #e7f2ee; }
.topic.seo { color: #78531a; background: #f5eedf; }
.card h2 { margin-top: .87rem; font-size: 1.12rem; font-weight: 650; line-height: 1.62; text-wrap: pretty; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.about { display: flex; align-items: center; gap: 1.15rem; padding-block: 2.5rem; }
.about img, .author-line img { flex: none; object-fit: cover; object-position: 50% 28%; }
.about img { width: 4.75rem; aspect-ratio: 1; border-radius: 6px; }
.about h2 { font-size: 1rem; }
.about p { margin-top: .28rem; font-size: .92rem; color: var(--quiet); }
.footer { border-top: 1px solid var(--line); }
.footer .frame { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.1rem; padding-block: 1.15rem; font-size: .88rem; color: var(--quiet); }
.footer a { font-weight: 700; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.article-page .masthead { padding-top: 1.65rem; }
.article-page .wordmark { font-size: 1.9rem; }
.article-page .masthead nav { margin-top: .9rem; }
.reading { padding-block: 2.1rem 3.2rem; }
.article-cover { width: min(100%, 51rem); margin-inline: auto; }
.article-cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 6px; background: #e5eaee; }
.column { width: min(100%, 45rem); margin-inline: auto; }
.article-title { padding-block: 2.1rem 1.55rem; }
.article-title .meta { justify-content: flex-start; column-gap: .9rem; }
.article-title h1 { margin-top: .83rem; font-size: 2rem; line-height: 1.46; font-weight: 730; text-wrap: balance; }
.author-line { display: flex; align-items: center; gap: .55rem; margin-top: .9rem; color: var(--quiet); font-size: .9rem; }
.author-line img { width: 2rem; aspect-ratio: 1; border-radius: 50%; }
.toc { border-block: 1px solid var(--line); padding-block: .55rem; }
.toc summary { cursor: pointer; color: var(--blue); font-weight: 650; }
.toc ol { padding-left: 1.7rem; margin-block: .4rem .55rem; }
.toc li + li { margin-top: .38rem; }
.prose { margin-top: 1.8rem; font-size: 1.063rem; font-weight: 400; line-height: 1.95; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.15em; }
.prose a { color: var(--blue); }
.prose strong { font-weight: 700; }
.prose h2 { margin-block: 2.7rem 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); font-size: 1.5rem; }
.prose h3 { margin-block: 1.85rem .75rem; font-size: 1.18rem; }
.prose [id] { scroll-margin-top: 1rem; }
.prose figure { margin-block: 2rem; }
.prose figcaption { margin-top: .55rem; font-size: .88rem; color: var(--quiet); }
.prose blockquote { margin-inline: 0; padding: .9rem 1.15rem; border-left: 3px solid #98b7d3; background: var(--panel); }
.prose blockquote > * + * { margin-top: .7rem; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: var(--panel); }
.prose .unavailable { color: var(--quiet); }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .94rem; line-height: 1.65; }
.prose td, .prose th { padding: .65rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--panel); }
.more .frame { max-width: 51rem; }
.more .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (width > 62rem) {
  .prose { font-size: 1.02rem; }
  .prose > * + * { margin-top: 1.222rem; }
}

@media (max-width: 62rem) {
  .frame { width: calc(100% - 3.5rem); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
}

@media (max-width: 40rem) {
  .frame { width: calc(100% - 2.25rem); }
  .masthead { padding: 1.5rem .9rem .55rem; }
  .wordmark, .article-page .wordmark { font-size: 1.78rem; }
  .masthead nav, .article-page .masthead nav { margin-top: .8rem; column-gap: .9rem; }
  .masthead nav a { font-size: .83rem; min-height: 2.25rem; }
  .catalog, .more { padding-block: 1.45rem 2rem; }
  .catalog h1, .more h2 { margin-bottom: .8rem; }
  .cards, .more .cards { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .card-info { padding: .97rem 1rem 1.2rem; }
  .card h2 { margin-top: .65rem; font-size: 1.04rem; }
  .about { align-items: flex-start; gap: .8rem; padding-block: 1.7rem; }
  .about img { width: 3.75rem; }
  .article-page .masthead { padding-top: 1.23rem; }
  .reading { padding-block: 1.1rem 2rem; }
  .article-cover img { aspect-ratio: 16 / 8; }
  .article-title { padding-block: 1.1rem 1.12rem; }
  .article-title h1 { font-size: 1.52rem; }
  .prose { margin-top: 1.2rem; font-size: 1rem; }
  .prose h2 { font-size: 1.29rem; margin-top: 2.2rem; }
  .prose h3 { font-size: 1.12rem; }
}
