/* やめとけ診断 — ダークシネマ調（配信サービス風）テーマ */
:root {
  --bg: #141414;
  --bg-elev: #1f1f1f;
  --bg-elev2: #2a2a2a;
  --ink: #f5f5f1;
  --sub: #a3a3a3;
  --accent: #e50914;        /* 判定の赤 */
  --accent-dark: #b00710;
  --ok: #46d369;            /* 「向いてる」の緑 */
  --line: #333333;
  --radius: 8px;
  --maxw: 640px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #241a1b 0%, var(--bg) 55%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  min-height: 100vh;
}
main { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 80px; }

a { color: var(--ink); }

/* ヒーロー背景: 架空サムネの壁（bg.jsが生成） */
.bg-band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.bg-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, .72) 0%,
    rgba(20, 20, 20, .82) 45%,
    var(--bg) 96%
  );
}
.thumb-wall {
  position: absolute;
  inset: -50px -60px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transform: rotate(-2.5deg) scale(1.06);
  filter: saturate(.95);
}
.thumb {
  width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.thumb .t {
  position: absolute;
  left: 8px;
  bottom: 5px;
  font-size: .6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.thumb .badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent);
  color: #fff;
  font-size: .5rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 0 0 4px 0;
}
.thumb .rank {
  position: absolute;
  right: 2px;
  bottom: -12px;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .5);
}

body { position: relative; }

.site-header { text-align: center; padding: 28px 16px 8px; }
.site-header .logo {
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: .12em;
  color: var(--accent);
}
.site-header .logo a { color: var(--accent); text-decoration: none; }

h1 {
  font-size: 1.7rem;
  line-height: 1.45;
  margin: .5em 0;
  font-weight: 900;
  letter-spacing: .02em;
}
h2 { font-size: 1.2rem; line-height: 1.6; font-weight: 800; }
.lead { color: var(--sub); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 20px 0;
}
.card h2 { margin-top: 0; }

/* ボタン */
.btn, .choice {
  display: block;
  width: 100%;
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-elev2);
  color: var(--ink);
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn:hover { background: #383838; }
.btn:active, .choice:active { transform: scale(.98); }

.choice { margin: 10px 0; text-align: left; }
.choice:hover { border-color: var(--ink); background: #383838; }

/* 診断UI */
.progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-bar { height: 100%; background: var(--accent); transition: width .3s ease; }
.q-count {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .15em;
  margin: 0 0 4px;
}
.q-text { margin-top: 0; font-size: 1.3rem; font-weight: 800; }
.back {
  background: none;
  border: none;
  color: var(--sub);
  cursor: pointer;
  margin-top: 18px;
  font-size: .9rem;
  font-family: inherit;
}
.back:hover { color: var(--ink); }

/* 結果ページ */
.verdict {
  text-align: center;
  padding: 44px 24px;
  border-radius: var(--radius);
  margin: 20px 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.verdict::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}
.verdict.ng::before { background: var(--accent); }
.verdict.ok::before { background: var(--ok); }
.verdict .verdict-label {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: .04em;
  margin: 0 0 .3em;
}
.verdict.ng .verdict-label { color: var(--accent); text-shadow: 0 0 32px rgba(229, 9, 20, .45); }
.verdict.ok .verdict-label { color: var(--ok); text-shadow: 0 0 32px rgba(70, 211, 105, .35); }
.verdict.ng { background: linear-gradient(180deg, rgba(229, 9, 20, .12) 0%, var(--bg-elev) 60%); }
.verdict.ok { background: linear-gradient(180deg, rgba(70, 211, 105, .10) 0%, var(--bg-elev) 60%); }

.share-row { display: flex; gap: 10px; margin: 18px 0; }
.share-row .btn { flex: 1; }

.note { font-size: .8rem; color: var(--sub); }

ul, ol { padding-left: 1.4em; }
li { margin: .4em 0; }
strong { color: #fff; }

/* 記事ページ */
.article h1 { font-size: 1.55rem; }
.article h2 {
  margin-top: 2.2em;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  font-size: 1.15rem;
}
.article .meta { color: var(--sub); font-size: .8rem; margin-bottom: 1.5em; }
.article p { margin: 1em 0; }
.cta-banner {
  background: linear-gradient(180deg, rgba(229, 9, 20, .14) 0%, var(--bg-elev) 70%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  text-align: center;
}
.cta-banner p { margin: 0 0 14px; font-weight: 700; }
.cta-banner .btn-primary { max-width: 420px; margin: 0 auto; }
table.simple { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .9rem; }
table.simple th, table.simple td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
table.simple th { background: var(--bg-elev2); }
.table-scroll { overflow-x: auto; }

footer { text-align: center; color: var(--sub); font-size: .8rem; padding: 40px 16px; }
footer a { color: var(--sub); }

@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  .q-text { font-size: 1.15rem; }
  .verdict .verdict-label { font-size: 1.7rem; }
}
