:root {
  --ink: #1b1e1b;
  --muted: #686d67;
  --line: #e4e7e1;
  --soft: #f5f6f2;
  --accent: #ddf6a3;
  --focus: #376b18;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 3px; }
.shell { width: min(100% - 112px, 1440px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 16px; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 102px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; flex-shrink: 0; }
.brand-mark { width: 96px; height: auto; flex-shrink: 0; }
.brand-type { font-size: 25px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.brand-type span { display: block; font-size: 14px; font-weight: 600; letter-spacing: .12em; margin-top: 5px; }
.site-header nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 500; }
.site-header nav a { padding: 12px 0; }
.nav-current { position: relative; }
.nav-current:after { content: ""; position: absolute; bottom: 4px; left: 0; width: 100%; height: 2px; background: var(--ink); }
.nav-about { color: var(--muted); }
.nav-about span { display: inline-block; margin-left: 10px; font-size: 19px; }
.nav-about:hover, .back-top:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 57px 52px; }
.eyebrow { font-size: 14px; letter-spacing: .12em; font-weight: 500; line-height: 1.4; }
.intro .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.intro-dot { width: 9px; height: 9px; border-radius: 50%; background: #84a64e; }
h1 { font-size: clamp(32px, 3.55vw, 52px); letter-spacing: -.055em; line-height: 1.4; font-weight: 650; }
.intro-copy { font-size: 14px; color: var(--muted); line-height: 1.95; padding-bottom: 4px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-block: 12px 20px; }
.collection-heading h2 { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 600; }
.total-count { font: 500 14px/1.8 var(--font); background: var(--accent); min-width: 29px; text-align: center; border-radius: 5px; }
.collection-label { color: var(--muted); font-size: 14px; letter-spacing: .09em; }
.collection-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 42px; padding-top: 26px; }
.filter-sidebar[hidden] + .results { grid-column: 1/-1; }
.filter-panel { position: sticky; top: 28px; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; min-height: 46px; margin-bottom: 17px; }
.filter-heading h3 { font-size: 15px; font-weight: 600; }
.text-button { background: none; border: 0; padding: 8px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { color: #8a8d87; text-decoration: none; cursor: default; }
.text-button:hover:not(:disabled) { color: var(--focus); }
.filter-group { border-bottom: 1px solid var(--line); padding-block: 20px 22px; }
.filter-group:first-child { border-top: 1px solid var(--line); }
.filter-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 650; padding: 2px 0; }
.filter-group summary::-webkit-details-marker { display: none; }
.chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-right: 3px; }
.filter-group[open] .chevron { transform: translateY(3px) rotate(225deg); }
.filter-group fieldset { border: 0; padding: 14px 0 0; margin: 0; min-width: 0; display: grid; gap: 3px; }
.filter-option { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; min-height: 39px; cursor: pointer; font-size: 14px; line-height: 1.45; }
.filter-option input { margin: 0; width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; }
.filter-option:has(input:checked) { font-weight: 600; }
.filter-option:hover { color: var(--focus); }
.option-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 400; }
.filter-note { font-size: 14px; color: var(--muted); margin-top: 18px; }
.sidebar-note { display: flex; align-items: center; gap: 14px; margin-top: 40px; background: var(--soft); padding: 18px 16px; border-radius: 8px; }
.small-arrow { font-size: 26px; font-weight: 300; }
.sidebar-note p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.results { min-width: 0; }
.results:focus { outline: none; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; margin-bottom: 17px; }
.result-count { font-size: 14px; color: var(--muted); }
.result-count strong { font-size: 21px; font-weight: 500; color: var(--ink); padding-right: 3px; font-variant-numeric: tabular-nums; }
.new-window-note { font-size: 14px; color: var(--muted); }
.new-window-note span { margin-left: 7px; font-size: 18px; }
.filter-toggle { display: none; align-items: center; gap: 7px; border: 1px solid #cfd3cb; background: white; border-radius: 6px; min-height: 43px; padding: 8px 13px; font-size: 14px; }
#filter-total { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; color: var(--ink); background: var(--accent); font-size: 14px; }
.active-filters { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 20px; }
#filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #d8e2cd; background: #f2f7eb; padding: 6px 10px; border-radius: 4px; font-size: 14px; }
.filter-chip:hover { background: var(--accent); }
.filter-chip span { font-size: 18px; line-height: 1; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 26px; row-gap: 39px; }
.work-card { min-width: 0; }
.work-link { display: block; border-radius: 10px; }
.work-preview { position: relative; aspect-ratio: 8/9; overflow: hidden; border-radius: 10px; border: 1px solid #dedfd9; background: var(--preview-bg); box-shadow: 0 2px 6px #1b1e1b09; }
.work-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .45s ease; }
.preview-action { position: absolute; bottom: 16px; left: 50%; transform: translate(-50%, 8px); white-space: nowrap; border-radius: 28px; background: #fff; color: var(--ink); padding: 10px 18px; font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; box-shadow: 0 2px 18px #0002; }
.preview-action span { margin-left: 15px; }
.work-link:hover .preview-action, .work-link:focus-visible .preview-action { opacity: 1; transform: translate(-50%, 0); }
.work-link:hover .work-preview img { transform: scale(1.025); }
.work-link:hover .open-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(0deg); }
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 17px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.site-type { font-size: 14px; white-space: nowrap; }
.work-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 10px; }
.work-title h3 { font-size: 18px; line-height: 1.55; font-weight: 650; letter-spacing: -.03em; overflow-wrap: anywhere; }
.open-arrow { border: 1px solid var(--line); width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-size: 19px; line-height: 1; flex-shrink: 0; transition: background .2s; }
.work-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 7px; }
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.work-tags span { font-size: 14px; background: var(--soft); color: #62665f; padding: 3px 8px; border-radius: 4px; }
.collection-end { display: flex; align-items: center; gap: 18px; justify-content: center; color: var(--muted); font-size: 14px; margin-block: 50px 10px; }
.collection-end > span:first-child, .collection-end > span:last-child { height: 1px; background: var(--line); flex: 1; max-width: 90px; }
.empty-state { text-align: center; padding: 70px 24px 90px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; }
.empty-symbol { width: 56px; height: 56px; display: grid; place-items: center; font-size: 32px; font-weight: 300; border-radius: 50%; background: var(--soft); margin: 0 auto 22px; transform: rotate(45deg); }
.empty-state h3 { font-size: 21px; font-weight: 600; }
.empty-state p { font-size: 14px; color: var(--muted); margin-top: 13px; }
.dark-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 12px 20px; border-radius: 6px; min-height: 48px; font-size: 14px; }
.dark-button:hover { background: #3b4633; }
.empty-state .dark-button { margin-top: 26px; }
.noscript-note { margin-bottom: 24px; padding: 16px; background: var(--soft); font-size: 14px; }
.about { margin-top: 85px; }
.about-inner { background: var(--soft); padding: 48px 50px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 45px; border-radius: 10px; }
.about .eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.about h2 { font-size: 31px; line-height: 1.55; letter-spacing: -.04em; font-weight: 600; }
.about-copy { font-size: 15px; line-height: 2; }
.demo-note { border-top: 1px solid #dedfd8; padding-top: 20px; margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.demo-note > span { display: block; font-size: 14px; letter-spacing: .04em; font-weight: 600; margin-bottom: 7px; color: #454d3e; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 38px; font-size: 14px; }
.footer-brand { font-weight: 750; font-size: 18px; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.footer-dot { width: 9px; height: 9px; border-radius: 50%; background: #89a75c; }
.site-footer p, .back-top { color: var(--muted); }
.back-top span { margin-left: 16px; }
.filter-dialog { color: var(--ink); border: 0; border-radius: 16px 16px 0 0; padding: 0 24px; width: 100%; max-width: 600px; max-height: min(90dvh, 850px); margin: auto auto 0; overflow-y: auto; overscroll-behavior: contain; }
.filter-dialog::backdrop { background: #1119; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; background: white; padding: 18px 0 12px; position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 20px; }
.icon-button { width: 44px; height: 44px; border: 0; background: var(--soft); border-radius: 50%; font-size: 28px; line-height: 1; }
.filter-dialog .filter-group:first-child { border-top: 0; }
.filter-dialog .filter-option { min-height: 44px; }
.dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; bottom: 0; background: white; padding: 20px 0 max(20px, env(safe-area-inset-bottom)); }
.dialog-footer .dark-button { gap: 4px; }
.dialog-footer .dark-button > span:last-child { margin-left: 14px; }
@media (min-width: 1600px) {
  .collection-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 50px; }
  .work-grid { gap: 46px 32px; }
}
@media (max-width: 1150px) {
  .shell { width: calc(100% - 72px); }
  .collection-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 30px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 24px; }
  .intro { gap: 24px; }
  .intro-copy { max-width: 295px; }
  .about-inner { padding: 40px 32px; gap: 28px; }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 48px); }
  .site-header { min-height: 86px; }
  .site-header nav { gap: 20px; }
  .nav-about { display: none; }
  .intro { display: block; padding-block: 40px 34px; }
  h1 { font-size: 36px; }
  .intro .eyebrow { margin-bottom: 17px; }
  .intro-copy { max-width: none; margin-top: 17px; }
  .collection-layout { display: block; padding-top: 16px; }
  .filter-sidebar { display: none; }
  .filter-toggle { display: inline-flex; }
  .new-window-note { display: none; }
  .results-toolbar { margin-bottom: 20px; }
  .collection-heading { padding-bottom: 17px; }
  .about { margin-top: 55px; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .about h2 br { display: none; }
  .site-footer { flex-wrap: wrap; }
  .site-footer p { order: 3; width: 100%; }
}
@media (max-width: 520px) {
  .brand-mark { width: 72px; }
  .brand-type { font-size: 23px; }
  .brand-type span { font-size: 14px; }
  .brand { gap: 9px; }
  .site-header { gap: 12px; }
  .site-header nav { font-size: 14px; }
  .intro { padding-top: 34px; }
  h1 { font-size: clamp(27px, 7.7vw, 36px); letter-spacing: -.06em; }
  .eyebrow { font-size: 14px; letter-spacing: .06em; }
  .intro-copy { font-size: 14px; letter-spacing: -.01em; }
  .collection-heading h2 { font-size: 16px; gap: 10px; }
  .collection-label { font-size: 14px; letter-spacing: .02em; }
  .work-grid { grid-template-columns: 1fr; row-gap: 33px; }
  .work-title h3 { font-size: 20px; }
  .work-preview { aspect-ratio: 8/9; }
  .work-meta { margin-top: 16px; }
  .about-inner { padding: 30px 24px; }
  .about h2 { font-size: 27px; }
  .about h2 br { display: initial; }
  .about-copy { font-size: 15px; }
  .about-copy br { display: none; }
  .site-footer { gap: 22px; padding-block: 30px; }
  .footer-brand { font-size: 16px; }
  .back-top span { margin-left: 6px; }
  .empty-state { padding: 45px 18px; }
  .empty-state h3 { font-size: 18px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 36px); }
  .collection-label { display: none; }
  .filter-dialog { padding-inline: 18px; }
  .dialog-footer { gap: 8px; }
  .dialog-footer .dark-button { padding-inline: 14px; }
  .site-footer .back-top { margin-left: auto; }
}
@media (hover: none) {
  .preview-action { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
