@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #edf0f6;
  --blue: #91adff;
  --muted: #a4aab8;
  --rule: #353b47;
  --paper: #13161c;
  --control-border: #586171;
  --accent-surface: #222d46;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }
.site-shell { width: min(100% - 6rem, 1480px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .8rem 1rem; background: var(--blue); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.masthead { padding-top: 1.8rem; border-bottom: 3px solid var(--ink); }
.masthead-top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.profession { font-size: .875rem; font-weight: 600; letter-spacing: .09em; }
nav { display: flex; gap: 2rem; align-items: center; }
nav a { font-size: .875rem; font-weight: 650; letter-spacing: .045em; padding: .35rem 0; }
nav a:hover, nav a:focus-visible { color: var(--blue); }
.nav-active { border-bottom: 2px solid var(--blue); }
h1 { font-size: 1.25rem; line-height: 1.35; letter-spacing: .035em; font-weight: 650; }
.masthead-name-en { display: block; margin-top: .15rem; font-size: .875rem; line-height: 1.4; letter-spacing: .055em; font-weight: 500; color: var(--muted); }
.masthead-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0 1.35rem; }
.masthead-bottom p { font-size: 1.25rem; font-weight: 550; }
.location { font-family: "SFMono-Regular", Consolas, monospace; font-size: .75rem !important; letter-spacing: .03em; }

.works { padding-top: 2rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.25rem; }
.section-heading h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.025em; display: flex; align-items: baseline; gap: .8rem; }
.section-jp { font-size: .8125rem; font-weight: 500; letter-spacing: .025em; color: var(--muted); }
.result-count { font-size: .8125rem; font-family: "SFMono-Regular", Consolas, monospace; color: var(--muted); text-align: right; }
.result-count strong { font-size: 1rem; color: var(--ink); font-weight: 650; }
.filter-panel { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.filter-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .7rem 0; cursor: pointer; font-size: .875rem; font-weight: 600; list-style: none; }
.filter-disclosure > summary::-webkit-details-marker { display: none; }
.filter-disclosure > summary:hover { color: var(--blue); }
.filter-disclosure > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.filter-toggle-hint::before { content: '＋'; font-size: 1.125rem; font-weight: 400; }
.filter-disclosure[open] .filter-toggle-hint::before { content: '−'; }
.filter-content { border-top: 1px solid var(--rule); }
.filter-row { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.category-row { border-bottom: 1px solid var(--rule); }
.filter-label { flex: 0 0 6rem; font-size: .875rem; font-weight: 600; color: var(--muted); }
.filter-options { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.tag-controls { flex: 1; min-width: 0; }
.tag-note { margin-top: .6rem; margin-bottom: 1.5rem; font-size: .8125rem; line-height: 1.7; color: var(--muted); }
.category-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border: 1px solid var(--control-border); border-radius: 999px; background: transparent; padding: .75rem 1rem; font-size: .875rem; font-weight: 600; min-height: 44px; transition: background .15s, color .15s, border-color .15s; }
.category-button[aria-pressed="true"] { color: var(--paper); background: var(--blue); border-color: var(--blue); }
.category-button:hover:not([aria-pressed="true"]) { background: var(--accent-surface); color: var(--blue); }
.button-count { font-size: .75rem; font-family: "SFMono-Regular", Consolas, monospace; font-weight: 500; opacity: .7; }
.tag-button { border: 1px solid var(--control-border); border-radius: 999px; background: transparent; padding: .5rem .75rem; min-height: 44px; font-size: .875rem; color: var(--muted); transition: color .15s, background .15s, border-color .15s; }
.tag-button[aria-pressed="true"] { color: var(--blue); font-weight: 650; background: var(--accent-surface); border-color: var(--blue); }
.tag-button:hover { color: var(--blue); border-color: var(--blue); }
.filter-select { max-width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--control-border); border-radius: .75rem; background: var(--paper); color: var(--ink); font-size: .875rem; }
.publication-row, .period-row { border-top: 1px solid var(--rule); }
.filter-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--rule); }
.filter-summary p { font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.reset-button { flex-shrink: 0; border: 0; background: transparent; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; padding: .5rem 0; font-size: .8125rem; }

.article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.1rem 1.5rem; }
.article-card { min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); padding-bottom: 1.2rem; }
.article-link { display: flex; flex-direction: column; height: 100%; }
.image-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #101010; }
.article-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.article-card:hover .article-image { transform: scale(1.035); }
.image-category { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); padding: .45rem .65rem; font-size: .75rem; line-height: 1; letter-spacing: .02em; }
.image-fallback { height: 100%; padding: 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 700; line-height: 1.6; text-align: center; background: var(--accent-surface); color: var(--blue); }
.image-credit { font-size: .75rem; color: var(--muted); line-height: 1.5; margin-top: .35rem; min-height: 1.15rem; }
.article-body { display: flex; flex-direction: column; flex-grow: 1; padding-top: .9rem; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem .65rem; margin-bottom: .6rem; }
.article-media { color: var(--blue); font-size: .8125rem; font-weight: 650; }
.article-date { font-size: .75rem; font-family: "SFMono-Regular", Consolas, monospace; color: var(--muted); white-space: nowrap; }
.article-title { font-size: 1.125rem; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; transition: color .15s; }
.article-card:hover .article-title { color: var(--blue); }
.article-context { font-size: .875rem; line-height: 1.75; margin-top: .35rem; white-space: pre-line; color: var(--muted); overflow-wrap: anywhere; }
.article-tags { display: flex; flex-wrap: wrap; gap: .35rem .6rem; padding-top: 1rem; margin-top: auto; }
.article-tag { color: var(--muted); font-size: .75rem; line-height: 1.6; }
.empty-state, .error-state { text-align: center; padding: 4rem 1rem; border-bottom: 1px solid var(--rule); }
.empty-title { font-weight: 650; font-size: 1.2rem; margin-bottom: .65rem; }
.empty-state p:not(.empty-title), .error-state p { font-size: 1rem; color: var(--muted); line-height: 1.75; }
.empty-reset { background: var(--blue); color: var(--paper); border: 0; padding: .85rem 1.25rem; margin-top: 1.5rem; font-size: .875rem; min-height: 44px; }
.empty-reset:hover { background: #b0c4ff; }
.noscript-message, .noscript-links { font-size: 1rem; line-height: 1.8; }
.noscript-links a { text-decoration: underline; }

.about-section { margin-top: 4rem; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1.65fr 1fr; gap: 2.5rem; padding-block: 2rem 2.5rem; }
.about-section h2 { font-size: .875rem; font-weight: 700; letter-spacing: .035em; margin-bottom: 1.1rem; }
.about-name { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin-bottom: .15rem; }
.about-name-en { font-size: .875rem; line-height: 1.4; letter-spacing: .05em; color: var(--muted); }
.about-bio p:first-child { font-size: 1rem; line-height: 1.95; }
.media-label { color: var(--muted); font-size: .75rem; margin-top: 1.25rem; margin-bottom: .4rem; }
.media-list { font-size: .8125rem; line-height: 1.9; overflow-wrap: anywhere; }
.contact-block { padding-left: 2rem; border-left: 1px solid var(--rule); }
.contact-block p { font-size: .875rem; line-height: 1.8; margin-bottom: .75rem; }
.contact-block a { display: block; width: fit-content; max-width: 100%; color: var(--blue); font-size: 1rem; font-weight: 650; line-height: 1.8; border-bottom: 1px solid var(--blue); overflow-wrap: anywhere; }
.contact-block a + a { margin-top: .65rem; }
.contact-block a:hover { color: var(--ink); border-color: var(--ink); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; border-top: 1px solid var(--rule); padding: 1.2rem 0 1.5rem; }
.site-footer p, .site-footer a { font-size: .75rem; letter-spacing: .04em; }
.site-footer p { color: var(--muted); }
.site-footer a:hover { color: var(--blue); }

@media (max-width: 1100px) {
  .site-shell { width: calc(100% - 4rem); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .about-section { grid-template-columns: 1fr 1.6fr; }
  .contact-block { padding-left: 0; border-left: 0; grid-column: 2; }
  .article-title { font-size: 1.25rem; }
}
@media (max-width: 650px) {
  .site-shell { width: calc(100% - 2rem); }
  .masthead { padding-top: 1.2rem; }
  .masthead-top { gap: .65rem; flex-wrap: wrap; }
  .profession { font-size: .75rem; letter-spacing: .045em; }
  nav { gap: 1rem; }
  nav a { font-size: .875rem; padding-block: .4rem; }
  h1 { font-size: 1.125rem; }
  .masthead-name-en { font-size: .8125rem; }
  .masthead-bottom { padding-block: .85rem 1rem; }
  .masthead-bottom p { font-size: 1.125rem; }
  .location { font-size: .75rem !important; }
  .works { padding-top: 1.6rem; }
  .section-heading { padding-bottom: 1rem; gap: .5rem; }
  .section-heading h2 { font-size: 1.125rem; gap: .55rem; }
  .section-jp { font-size: .75rem; }
  .result-count { font-size: .75rem; }
  .filter-row { display: block; padding-block: .7rem; }
  .filter-label { display: block; font-size: .875rem; margin-bottom: .3rem; }
  .category-options { gap: .25rem; }
  .category-button { padding: .6rem .65rem; font-size: .875rem; gap: .4rem; }
  .tag-options { gap: .4rem .5rem; }
  .tag-button { font-size: .875rem; padding-inline: .65rem; }
  .tag-note { margin-bottom: 1.25rem; }
  .filter-summary { align-items: flex-start; gap: .5rem; }
  .article-grid { gap: 1.6rem .9rem; }
  .article-title { font-size: .9375rem; line-height: 1.75; }
  .article-meta { display: block; }
  .article-media { display: block; font-size: .75rem; line-height: 1.5; }
  .article-date { display: block; margin-top: .2rem; }
  .article-body { padding-top: .6rem; }
  .article-context { font-size: .875rem; line-height: 1.7; }
  .image-credit { font-size: .75rem; line-height: 1.5; min-height: 2.25rem; }
  .image-category { font-size: .75rem; padding: .4rem .45rem; }
  .article-tags { padding-top: .75rem; gap: .2rem .4rem; }
  .about-section { margin-top: 2.5rem; grid-template-columns: 1fr; gap: 1.4rem; padding-block: 1.5rem 2rem; }
  .about-section h2 { margin-bottom: .75rem; }
  .about-bio p:first-child { font-size: 1rem; }
  .contact-block { grid-column: auto; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
  .contact-block p { margin-bottom: .4rem; }
  .site-footer { align-items: flex-start; }
}
@media (max-width: 350px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-title { font-size: 1.125rem; }
  .image-credit { min-height: auto; }
  .section-jp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .article-card:hover .article-image { transform: none; }
}
