:root {
  --paper: #FFFFFF;
  --band: #F1F4F7;
  --band-soft: #F8F9FB;
  --surface: #FFFFFF;
  --ink: #18212C;
  --ink-soft: #4E5B6B;
  --line: #D6DFE9;
  --sora: #0068B7;
  --juki: #F2B705;
  --juki-ink: #3A2C00;
  --heroes: #C93A31;
  --roots: #2F7D5B;
  --display: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121922; --band: #19222E; --band-soft: #161E29; --surface: #1A2330; --ink: #E8EEF5; --ink-soft: #A7B4C3;
    --line: #2C3848; --sora: #7FB0EA; --heroes: #E9645C; --roots: #5DB48A;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
.blog { scroll-margin-top: 16px; }
h1, h2, .post-title { text-wrap: balance; }
p, li, dd, .post-sub { text-wrap: pretty; }
time { font-variant-numeric: tabular-nums; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.8;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sora); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--sora); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.sp { display: none; }

/* header */
.logo { display: inline-flex; align-items: center; gap: 10px; color: #0068B7; text-decoration: none; font-weight: 700; font-size: 20px; }
.logo img { width: 45px; height: 36px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 20px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); text-decoration: underline; }

/* hero: the one loud thing */
.hero { padding: 48px 0 8px; }
.hero-lead { font-family: var(--body); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.5; margin: 0; }
/* blog sections */
.blog { padding: 48px 0 56px; }
.blog:nth-of-type(odd) { background: var(--band-soft); }
.note { background: var(--band); }
.blog-banner { margin: 0 0 28px; line-height: 0; }
.blog-banner a { display: block; border-radius: 6px; overflow: hidden; outline-offset: 4px; }
.blog-banner img { width: 100%; height: auto; aspect-ratio: 1440 / 300; object-fit: cover; }
.blog-banner a:hover img { opacity: .9; }
.blog-more { margin: 36px 0 0; text-align: center; }
.blog-more a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 220px;
  padding: 12px 40px; border-radius: 999px; border: 2px solid var(--sora); background: var(--paper); color: var(--sora);
  font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 104, 183, .18);
}
.blog-more a:hover { background: #EEF5FB; }
@media (prefers-color-scheme: dark) { .blog-more a { box-shadow: 0 3px 10px rgba(0, 0, 0, .45); } .blog-more a:hover { background: #1F2B3A; } }

.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.post a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.post img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.post-meta { display: flex; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.post-cat { font-weight: 700; }
.blog--juki .post-cat { color: #8A6A00; }
.blog--heroes .post-cat { color: var(--heroes); }
.blog--roots .post-cat { color: var(--roots); }
@media (prefers-color-scheme: dark) { .blog--juki .post-cat { color: var(--juki); } }
.post-title { font-weight: 700; font-size: 18px; line-height: 1.5; }
.post-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post a:hover .post-title { text-decoration: underline; text-underline-offset: .2em; }
.empty { color: var(--ink-soft); }

.note { padding: 48px 0 64px; }
.note h2 { font-size: 18px; margin: 0 0 8px; }
.note p { margin: 0; max-width: 40em; color: var(--ink-soft); }

/* document pages */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1.35; margin: 0 0 28px; }
.doc h2 { font-size: 19px; margin: 40px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc p, .doc li { max-width: 40em; }
.facts { display: grid; grid-template-columns: 8em 1fr; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.doc-blogs { padding-left: 1.2em; }
.doc-blogs li { margin-bottom: 12px; }
.mail { font-size: 20px; font-weight: 700; }
.updated { color: var(--ink-soft); font-size: 14px; margin-top: 32px; }

/* footer */
.site-footer { background: var(--ink); color: #C9D3DE; padding: 40px 0 32px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0D131A; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-blogs a { font-weight: 700; }
.copy { margin: 20px 0 0; color: #93A1B1; }

@media (max-width: 860px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .sp { display: inline; }
  .hero { padding: 32px 0 0; }
  .blog-banner img { aspect-ratio: 720 / 240; }
  .posts { grid-template-columns: 1fr; gap: 20px; }
  .post a { display: grid; grid-template-columns: 112px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; }
  .post a { grid-template-rows: auto auto 1fr; }
  .post img { grid-row: 1 / span 3; aspect-ratio: 1 / 1; height: 112px; overflow: hidden; margin: 0; }
  .post-title { font-size: 16px; }
  .post-sub { font-size: 13px; }
  .blog { padding: 44px 0; }
  .facts { grid-template-columns: 6em 1fr; }
}
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
