:root {
  color-scheme: light;
  --text: #292b2a;
  --muted: #686d69;
  --line: #d8dbd8;
  --soft: #f5f6f5;
  --accent: #b9322b;
  --page-width: 872px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

html {
  transform: scale(1.06);
  transform-origin: top left;
  width: 94.3396%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #394d74; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid #526d9b; outline-offset: 3px; }
.page { width: min(var(--page-width), calc(100% - 40px)); margin: 26px auto 0; }
.site-banner { display: block; width: 100%; height: auto; aspect-ratio: 872 / 169; object-fit: cover; }
.site-header h1 { margin: 12px 0 2px; font-size: clamp(26px, 4vw, 31px); line-height: 1.35; font-weight: 720; letter-spacing: .035em; }
.intro { margin: 7px 0 0; color: #444845; font-size: 13px; line-height: 1.65; }
.secret-link { color: inherit; text-decoration: none; }
.section { padding: 17px 0 20px; border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 9px; font-size: 19px; font-weight: 700; line-height: 1.5; letter-spacing: .015em; }
.section p { margin: 0; }
.greeting { padding-top: 8px; padding-bottom: 16px; }
.greeting-lead { color: var(--accent); font-weight: 700; }
.greeting-dash { display: inline-block; width: 44px; margin: 0 8px 4px; border-top: 1px solid #d8a39f; vertical-align: middle; }
.plain-links { list-style: none; margin: 0; padding: 0; }
.plain-links li { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 5px; row-gap: 0; padding: 5px 0; }
.plain-links a { font-size: 13px; }
.plain-links span { color: #4e534f; font-size: 13px; }
.section-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-title-row h2 { margin-bottom: 4px; }
.section-note { color: #888d89; font-size: 10px; letter-spacing: .1em; }
.section-description { color: #555a56; font-size: 13px; margin-bottom: 10px !important; }
.filters { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 8px 0 10px; }
.filter-button { padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #686d69; font: inherit; font-size: 12px; cursor: pointer; }
.filter-button:hover { color: var(--text); }
.filter-button.is-active { color: var(--text); border-bottom-color: #525752; font-weight: 650; }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-item { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.work-type { padding-top: 3px; color: #858a86; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.work-main h3 { margin: 0 0 3px; font-size: 15px; font-weight: 680; line-height: 1.55; }
.work-main p { color: #555a56; font-size: 12px; line-height: 1.8; }
.work-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; font-size: 11px; }
.work-links span { color: #8a8e8b; }
.work-state { color: #777c78; background: var(--soft); padding: 2px 7px; font-size: 10px; white-space: nowrap; }
.sample-note { margin-top: 10px !important; color: #777c78; font-size: 11px; }
.closing { padding-top: 18px; padding-bottom: 18px; }
.closing h2 { margin-bottom: 10px; }
.closing p { font-size: 12px; line-height: 1.8; }
.closing .browser-note { margin-top: 9px; color: #555a56; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 6px 40px; }
.counter-group { display: flex; gap: 6px; }
.counter { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 66px; padding: 4px 9px; border: 1px solid #e4e6e4; border-radius: 3px; background: #fafbfa; line-height: 1.35; }
.counter span { color: #858a86; font-size: 8px; letter-spacing: .04em; }
.counter strong { font-size: 12px; font-weight: 650; }
.site-footer p { margin: 0; color: #777c78; font-size: 10px; text-align: right; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 10; padding: 8px 12px; background: #fff; border: 1px solid var(--line); }
.skip-link:focus { top: 12px; }
.work-item[hidden] { display: none; }

@media (max-width: 600px) {
  .page { width: calc(100% - 32px); margin-top: 16px; }
  .site-header h1 { margin-top: 10px; font-size: 26px; }
  .intro { font-size: 12px; }
  .section { padding: 15px 0 17px; }
  .section h2 { font-size: 18px; }
  .greeting { padding-top: 7px; }
  .greeting-dash { width: 18px; margin-inline: 4px; }
  .plain-links li { display: block; padding: 6px 0; }
  .plain-links span { margin-left: 4px; font-size: 12px; }
  .work-item { grid-template-columns: 1fr auto; gap: 2px 10px; padding: 13px 0; }
  .work-type { grid-column: 1; }
  .work-main { grid-column: 1 / -1; grid-row: 2; }
  .work-state { grid-column: 2; grid-row: 1; }
  .work-main h3 { font-size: 14px; }
  .work-main p { font-size: 12px; }
  .filters { gap: 6px 13px; }
  .site-footer { align-items: flex-end; padding: 13px 0 28px; gap: 12px; }
  .counter { min-width: 55px; padding-inline: 6px; }
  .site-footer p { max-width: 58%; font-size: 9px; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
