:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --white: #fffdf7;
  --ink: #1d2724;
  --muted: #4f6058;
  --line: #d9dcd0;
  --red: #a53226;
  --green: #183e33;
  font: 16px/1.65 system-ui, "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #bc553a; outline-offset: 3px; }
.wrap { width: min(1140px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -10rem; padding: .6rem; background: var(--white); z-index: 2; }
.skip:focus { top: 1rem; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 72px; }
.top a { font-size: .9rem; font-weight: 750; text-decoration: none; }
.top a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 6rem) 0; }
.eyebrow { font-weight: 750; letter-spacing: .16em; font-size: .72rem; margin: 0 0 .65rem; }
.hero-copy .eyebrow, .section-kicker { color: var(--red); }
.eyebrow span { display: inline-block; width: .55rem; height: .55rem; margin-right: .3rem; border-radius: 50%; background: var(--red); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.17; letter-spacing: -.04em; font-weight: 850; }
.intro { margin-top: 1.25rem; color: var(--muted); font-size: clamp(.96rem, 1.6vw, 1.15rem); }
.stamp { margin-top: 1.6rem; color: var(--muted); font-size: .8rem; }
.watch { background: var(--green); color: #fff9eb; border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.1rem); box-shadow: 0 12px 30px #183e331c; }
.watch .eyebrow { color: #bed9be; }
.watch h2 { font-size: 1.3rem; margin-bottom: .7rem; }
.watch a { display: grid; grid-template-columns: 4rem 1fr auto; gap: .8rem; align-items: center; padding: .75rem 0; border-top: 1px solid #527266; text-decoration: none; font-weight: 700; }
.watch a:hover span { text-decoration: underline; }
.watch time { color: #f7cc93; font-size: 1.14rem; font-variant-numeric: tabular-nums; }
.watch small { display: block; color: #cddfd2; font-size: .74rem; font-weight: 500; }
#directory { border-top: 1px solid var(--line); padding-top: 2rem; }
#directory h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1.15fr; gap: .8rem; margin-top: 1.25rem; }
.filters label { display: grid; gap: .35rem; font-size: .78rem; font-weight: 750; min-width: 0; }
input, select, button { font: inherit; }
input, select { min-width: 0; width: 100%; min-height: 46px; border: 1px solid #aab5a8; border-radius: 8px; padding: .55rem .7rem; background: var(--white); color: var(--ink); font-size: .9rem; }
.results { display: flex; justify-content: space-between; gap: .5rem; align-items: center; margin: 1rem 0; color: var(--muted); font-size: .83rem; }
.results button { cursor: pointer; color: var(--green); background: transparent; border: 0; text-decoration: underline; padding: .35rem 0 .35rem .5rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 1.15rem 1.3rem; scroll-margin-top: 1rem; }
.card:target { outline: 3px solid var(--red); outline-offset: 3px; }
.meta { display: flex; align-items: start; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: .77rem; }
.badge { flex: none; background: #e5efe2; color: #214c39; padding: .15rem .5rem; border-radius: 1rem; font-weight: 750; }
.card h3 { margin: .7rem 0 .45rem; font-size: 1.13rem; line-height: 1.45; }
.topic { color: var(--red); font-size: .74rem; font-weight: 750; }
.amount { color: var(--green); font-weight: 800; margin: .25rem 0; }
dl { margin: .55rem 0 1rem; font-size: .83rem; }
dl div { display: grid; grid-template-columns: 7.4rem 1fr; gap: .55rem; padding: .45rem 0; border-top: 1px solid var(--line); }
dt { font-weight: 720; }
dd { margin: 0; color: var(--muted); }
.official { margin-top: auto; align-self: start; color: var(--green); font-size: .86rem; font-weight: 750; text-underline-offset: .2em; }
.empty { grid-column: 1 / -1; background: var(--white); border-radius: 10px; padding: 1.5rem; }
footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .83rem; }
footer a { display: inline-block; margin: .55rem .8rem 0 0; }
@media (max-width: 820px) {
  .hero { gap: 1.5rem; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search { grid-column: 1 / -1; }
  dl div { display: block; }
}
@media (max-width: 630px) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .cards { grid-template-columns: 1fr; }
  .top-inner { min-height: 60px; }
  .top a { font-size: .8rem; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:last-child { grid-column: 1 / -1; }
}
