:root {
  --brand: #0e7c86;
  --accent: #e8491d;
  --bg: #f4f4f4;
  --card: #ffffff;
  --text: #222222;
  --muted: #777777;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #13909b;
    --bg: #16181a;
    --card: #222529;
    --text: #e8e8e8;
    --muted: #9a9a9a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
}
a { color: inherit; }
header.site {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 18px 16px;
}
header.site a { text-decoration: none; }
header.site .title { font-size: 1.6rem; letter-spacing: .12em; font-weight: 700; }
header.site .flag { height: 1.1em; vertical-align: -0.15em; margin-right: .4em; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  text-decoration: none;
}
.card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.card:hover img { opacity: 1; }
.card .tag, .post .tag {
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  padding: 2px 8px;
}
.card .tag { position: absolute; top: 0; left: 0; }
.card .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}
.card .caption strong { display: block; font-size: 1.05rem; }
.card .caption time { font-size: .75rem; opacity: .85; }
.post { background: var(--card); padding: 24px; border-radius: 4px; }
.post h1 { font-size: 1.5rem; margin: .4em 0; line-height: 1.4; }
.post .meta { color: var(--muted); font-size: .85rem; }
.post img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 2px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 16px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.back { display: inline-block; margin-top: 24px; color: var(--brand); }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px 16px; }
