/* 挟射.com
   ★このファイルを触ったら layout.js の CSS_VERSION を上げること。 */

:root {
  --bg: #14141a;
  --panel: #1c1c25;
  --panel2: #22222d;
  --line: #32323f;
  --text: #e6e6ec;
  --muted: #9b9baa;
  --accent: #e8b3c4;
  --accent-d: #c98299;
  --link: #9fc6f0;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

a { color: var(--link); }
a:hover { color: #c8dcf6; }
img { max-width: 100%; height: auto; display: block; }

/* ── ヘッダー ───────────────────────────── */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.brand { text-decoration: none; color: var(--text); display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.brand-tag { font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent-d); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

/* ── 本文 ───────────────────────────────── */
.main { max-width: var(--max); margin: 0 auto; padding: 0 16px 56px; }

.crumb { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumb a { color: var(--muted); }

.lead { padding: 22px 0 6px; }
.lead h1 {
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.45;
  margin: 0 0 14px;
  color: #fff;
  border-left: 5px solid var(--accent);
  padding-left: 14px;
}
.lead p { margin: 0; color: #d6d6df; }

.sec { margin: 30px 0; }
.sec h2, .facts h2, .works h2, .related h2 {
  font-size: 19px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: #fff;
}
.sec p { margin: 0 0 14px; }
.sec p:last-child { margin-bottom: 0; }

/* ── 数字で見る ─────────────────────────── */
.facts { margin: 28px 0; }
.facts table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 40%; color: var(--muted); font-weight: 500; }
.facts td { color: #fff; }
.facts .sub { color: var(--muted); font-size: 13px; margin-left: 6px; }

/* ── 作品一覧 ───────────────────────────── */
.works { margin: 34px 0; }
.works-note { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.works-foot { color: var(--muted); font-size: 13px; margin: 16px 0 0; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { border-color: var(--accent-d); }
.card-link { display: flex; gap: 12px; padding: 10px; text-decoration: none; color: inherit; }
.card-thumb { flex: 0 0 104px; }
.card-thumb img { width: 104px; height: auto; aspect-ratio: 147 / 200; object-fit: cover; border-radius: 6px; background: var(--panel2); }
.card-thumb .noimg { display: block; width: 104px; aspect-ratio: 147 / 200; border-radius: 6px; background: var(--panel2); }
.card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-title { font-size: 14px; line-height: 1.5; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: var(--accent); }
.card-sub, .card-act { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { align-self: flex-start; font-size: 11px; color: #14141a; background: var(--accent); border-radius: 4px; padding: 1px 6px; margin-top: 2px; }

/* ── 関連 ───────────────────────────────── */
.related { margin: 34px 0 0; }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related li a {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  text-decoration: none;
}
.related li a:hover { border-color: var(--accent-d); }

/* ── フッター ───────────────────────────── */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 40px; }
.idx {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 16px 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.idx-label { font-size: 13px; color: var(--accent); margin: 0 0 6px; font-weight: 700; }
.idx-col ul { list-style: none; margin: 0; padding: 0; }
.idx-col li { margin: 0 0 4px; }
.idx-col a { font-size: 14px; text-decoration: none; color: #cfcfda; }
.idx-col a:hover { color: var(--accent); }

.foot-notes { max-width: var(--max); margin: 0 auto; padding: 16px 16px 30px; border-top: 1px solid var(--line); }
.foot-notes p { margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.note-age { color: #e0a0a0 !important; }
.foot-links a { color: #cfcfda; }
.copy { color: #6f6f80 !important; }

@media (max-width: 560px) {
  body { font-size: 15px; }
  .nav { width: 100%; margin-left: 0; }
  .card-thumb { flex-basis: 84px; }
  .card-thumb img, .card-thumb .noimg { width: 84px; }
  .facts th { width: 46%; }
}
