:root {
  color: #242424;
  background: #f2f2ef;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  --ink: #242424;
  --sub: #666d68;
  --rule: #d8d9d5;
  --paper: #fff;
  --sidebar: #fafaf8;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f2f2ef; color: var(--ink); }
button, input, select { font: inherit; }
button, select { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; background: var(--paper); border: 1px solid var(--rule); }
.site-header { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--ink); background: #fff; }
.site-name { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 17px; font-weight: 600; letter-spacing: .08em; }
.header-meta { display: flex; gap: 20px; align-items: center; color: #555e58; font-size: 12px; }
.header-meta a { color: inherit; text-decoration: none; border-bottom: 1px solid #78817b; padding-bottom: 2px; }
.lead { padding: 16px 22px 15px; border-bottom: 1px solid var(--rule); }
.lead h1 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: .02em; }

.layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); align-items: start; }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 30px 24px 38px 28px; border-right: 1px solid var(--ink); background: var(--sidebar); }
.sidebar-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--ink); margin-bottom: 16px; }
.sidebar-heading strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 14px; font-weight: 600; }
.sidebar-heading span { color: #727a74; font-size: 11px; }
.search-box { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 9px; margin-bottom: 20px; border: 1px solid #adb4ae; background: #fff; }
.search-box > span { color: #374a40; font-family: serif; font-size: 20px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.field { display: block; margin-bottom: 17px; color: #777f79; font-size: 11px; letter-spacing: .05em; }
.field select, .sort-field select { width: 100%; height: 32px; margin-top: 4px; border: 0; border-bottom: 1px solid #abb2ac; border-radius: 0; background: transparent; color: #303833; font-size: 12px; }
.date-field { padding: 0; margin: 0 0 17px; border: 0; }
.date-field legend { margin-bottom: 6px; color: #777f79; font-size: 11px; letter-spacing: .05em; }
.date-range { display: grid; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); align-items: center; gap: 4px; }
.date-range input { min-width: 0; width: 100%; padding: 7px 0 6px; border: 0; border-bottom: 1px solid #abb2ac; background: transparent; color: #3d4741; font-size: 9px; }
.date-range span { color: #777f79; font-size: 9px; text-align: center; }
.active-conditions { display: flex; flex-direction: column; gap: 3px; min-height: 12px; padding-top: 13px; margin-top: 22px; border-top: 1px solid var(--rule); color: #415249; font-size: 10px; }
.active-conditions span::before { content: "・"; color: #929993; }
.reset-button { width: 100%; padding: 8px; margin-top: 10px; border: 1px solid #aeb5af; background: transparent; color: #59615b; cursor: pointer; font-size: 10px; }

.content { min-width: 0; padding: 32px 32px 52px; }
.content-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 9px; margin-bottom: 17px; border-bottom: 1px solid var(--ink); }
.content-heading h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 17px; font-weight: 500; letter-spacing: .05em; }
.result-tools { display: flex; align-items: center; gap: 14px; color: #6e766f; font-size: 11px; }
.sort-field { min-width: 150px; }
.sort-field select { height: 28px; margin: 0; font-size: 11px; }
.result-status { display: flex; justify-content: flex-end; min-height: 18px; color: #6e766f; font-size: 11px; }
.result-conditions { min-height: 0; padding: 0 0 12px; margin: 0; border: 0; }
.notice { padding: 24px 0; color: var(--sub); font-size: 13px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 35px; align-items: stretch; }
.article-item { min-width: 0; height: 100%; }
.article-item[hidden] { display: none; }
.article-card { appearance: none; display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; height: 100%; padding: 0 0 13px; border: 0; border-bottom: 1px solid #bfc5bf; background: transparent; color: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.article-card:hover .title { text-decoration: underline; text-underline-offset: 4px; }
.article-card:focus { outline: 0; }
.article-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.visual { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #363636; background: #e6e7e3; }
.visual-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px; background: linear-gradient(135deg, #e5e7e4, #eeebe5); }
.visual-source { font-size: 10px; letter-spacing: .08em; }
.visual-title { margin-top: 28px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(16px, 1.7vw, 25px); line-height: 1.35; }
.visual-tech { margin-top: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #4f5752; font-size: 10px; }
.visual-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #e6e7e3; }
.card-meta { display: flex; justify-content: space-between; align-items: center; padding: 9px 3px 7px; border-bottom: 1px solid var(--rule); color: #737b75; font-size: 11px; }
.card-genre { color: #405248; }
.title { min-height: 3.25em; margin: 13px 3px 8px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 18px; line-height: 1.62; font-weight: 600; }
.card-summary { min-height: 5.3em; margin: 0 3px 14px; overflow: hidden; color: #626a64; font-size: 12px; line-height: 1.78; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tags { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 9px 3px; margin-top: auto; border-top: 1px solid #e0e3df; border-bottom: 1px solid #e0e3df; color: #405248; font-size: 10px; }
.tags span::before, .dialog-tags span::before { content: "・"; color: #939a95; }
.dates { display: flex; justify-content: space-between; padding: 10px 3px 0; color: #7b827d; font-size: 10px; line-height: 1.5; }

.article-dialog { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 20px; color: var(--ink); }
.article-dialog:target { display: flex; }
.dialog-backdrop { position: absolute; inset: 0; background: rgb(20 20 20 / 58%); }
.dialog-panel { position: relative; z-index: 1; width: min(680px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; border: 1px solid #303030; border-radius: 8px; background: #fff; }
.dialog-heading { position: sticky; top: 0; z-index: 2; min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #d7d7d3; background: #fff; }
.dialog-heading > span { color: #666; font-size: 12px; }
.dialog-close { appearance: none; padding: 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 21px; line-height: 1; text-decoration: none; }
.dialog-body { padding: 24px; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 15px; color: #666; font-size: 12px; }
.dialog-title { margin: 0 0 14px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 25px; line-height: 1.5; font-weight: 600; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; color: #444; font-size: 12px; }
.dialog-source-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 12px 0 14px; border-bottom: 1px solid #ddd; }
.dialog-dates { display: flex; flex-direction: column; color: #777; font-size: 11px; line-height: 1.9; }
.source-link { padding-bottom: 3px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.summary-label { margin: 22px 0 7px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.dialog-summary { margin: 0 0 20px; color: #505652; font-size: 14px; line-height: 1.9; }
.dialog-summary p { margin: 0; }
.dialog-summary p + p { margin-top: 11px; }
.dialog-summary-line { padding: 9px 0; border-top: 1px solid #ecece8; }
.dialog-summary-line:first-of-type { margin-top: 18px; }

@media (max-width: 1100px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { padding-inline: 16px; }
  .header-meta > span { display: none; }
  .lead { padding-inline: 16px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; overflow: visible; padding: 24px 20px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .content { padding: 26px 20px 42px; }
  .content-heading { align-items: flex-start; gap: 16px; }
  .result-tools { flex-direction: column; align-items: end; gap: 3px; }
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .title, .card-summary { min-height: 0; }
  .article-dialog { padding: 10px; }
  .dialog-panel { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .dialog-body { padding: 20px; }
  .dialog-title { font-size: 22px; }
}
