:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --surface: #16161f;
  --border: rgba(255, 255, 255, .1);
  --text: #e8e8ec;
  --muted: #aaaab7;
  --red: #e63946;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Sans JP", sans-serif; line-height: 1.85; }
a { color: inherit; }
.site-header, main, .site-footer { width: min(1060px, calc(100% - 40px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; border-bottom: 1px solid var(--border); }
.site-header img { width: 150px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header a { text-decoration: none; font-weight: 700; }
main { padding: 64px 0 90px; min-height: 70vh; }
.eyebrow { margin: 0 0 8px; color: var(--red); font: 700 .75rem/1 "Outfit", sans-serif; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font: 700 clamp(2rem, 6vw, 3.6rem)/1.2 "Outfit", "Noto Sans JP", sans-serif; }
.lead { max-width: 720px; margin: 18px 0 0; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.article-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: transform .25s, border-color .25s; }
.article-card:hover { transform: translateY(-4px); border-color: rgba(230, 57, 70, .5); }
.article-card a { display: block; height: 100%; text-decoration: none; }
.article-card img, .article-card-placeholder { width: 100%; height: 190px; object-fit: cover; background: linear-gradient(135deg, #2a1720, #151522); }
.article-card-placeholder { display: grid; place-items: center; color: var(--red); font: 700 1.2rem "Outfit", sans-serif; }
.article-card-body { padding: 22px; }
.article-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .76rem; }
.article-category { color: #ff8d96; font-weight: 700; }
.article-card h2 { margin: 12px 0 8px; font-size: 1.08rem; line-height: 1.55; }
.article-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.empty { margin-top: 42px; padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--muted); }
.article-header { max-width: 820px; margin: 0 auto; }
.article-header h1 { margin-top: 16px; }
.article-summary { color: var(--muted); font-size: 1.05rem; }
.article-eyecatch { width: min(920px, 100%); max-height: 540px; margin: 42px auto 0; border-radius: 16px; object-fit: cover; }
.article-content { width: min(760px, 100%); margin: 52px auto 0; font-size: 1rem; }
.article-content h2 { margin: 58px 0 18px; padding-left: 16px; border-left: 4px solid var(--red); font-size: 1.65rem; line-height: 1.45; }
.article-content h3 { margin: 40px 0 14px; font-size: 1.3rem; }
.article-content p, .article-content li { color: #d2d2da; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.article-content a { color: #ff8d96; }
.article-content blockquote { margin: 30px 0; padding: 18px 24px; border-left: 3px solid var(--red); background: var(--surface); color: var(--muted); }
.article-content pre { overflow-x: auto; padding: 20px; background: #050509; border: 1px solid var(--border); border-radius: 10px; }
.article-content table { width: 100%; border-collapse: collapse; }
.article-content th, .article-content td { padding: 10px; border: 1px solid var(--border); text-align: left; }
.article-back { display: inline-flex; margin-top: 64px; color: #ff8d96; font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 42px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
@media (max-width: 820px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .site-header nav { font-size: .85rem; }
  main { padding-top: 44px; }
  .article-grid { grid-template-columns: 1fr; }
}

