:root { color-scheme: light dark; --fg: #1c1917; --muted: #57534e; --line: #e7e5e4; --bg: #fafaf9; --card: #fff; }
@media (prefers-color-scheme: dark) { :root { --fg: #fafaf9; --muted: #a8a29e; --line: #44403c; --bg: #1c1917; --card: #292524; } }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif; color: var(--fg); background: var(--bg); }
header, main, footer { width: min(960px, calc(100% - 2rem)); margin-inline: auto; }
footer a { color: inherit; text-decoration: none; }
header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
header a { color: inherit; text-decoration: none; font-weight: 700; }
nav { display: flex; gap: 1rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--fg); }
main { padding: 1.5rem 0 3rem; }
h1 { font-size: 1.7rem; margin: 0 0 .4rem; }
.lead { color: var(--muted); margin: 0 0 1.25rem; }
.cards { display: grid; gap: .75rem; }
.cards a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; text-decoration: none; }
.cards a:hover { border-color: #b91c1c; }
.cards small { display: block; color: var(--muted); }
form { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
input { font: inherit; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: inherit; min-width: 12rem; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { font-weight: 600; }
tr.hit { background: #fee2e2; }
@media (prefers-color-scheme: dark) { tr.hit { background: #7f1d1d; } }
footer { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .9rem; padding-bottom: 2rem; }
.table-scroll { overflow-x: auto; }
table { min-width: 28rem; }
@media (max-width: 640px) {
  header { align-items: stretch; flex-direction: column; gap: .4rem; }
  nav { gap: .75rem; }
  .board-frame { height: 75svh; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  input { min-width: 0; width: 100%; }
}

.board { display: grid; gap: .75rem; }
.board article { padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.board time, .board b { font-size: .85rem; }
.board time { color: var(--muted); margin-right: .6rem; }
.board p { margin: .3rem 0 0; white-space: normal; }
.board .gone { color: var(--muted); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.photos img { width: 100%; height: 210px; object-fit: cover; display: block; border-radius: 8px; background: var(--card); }
.photos a.maze { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; min-height: 210px; color: inherit; text-decoration: none; }
.contact { display: grid; gap: .8rem; max-width: 32rem; }
.contact label { display: grid; gap: .25rem; }
.contact input, .contact textarea, .contact button { font: inherit; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: inherit; }
.contact button { width: fit-content; cursor: pointer; }

.board-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
main > .contact { margin-top: 1rem; }

.hero { display: block; width: min(640px, 100%); height: auto; margin: 0 auto 1.25rem; border-radius: 10px; }
