/* TABRUST スロット解析 — 攻略サイト風（白基調・青い見出し帯・右サイドバー） */
:root {
  --bg: #f2f3f5;
  --paper: #ffffff;
  --ink: #222428;
  --muted: #6f737c;
  --line: #d6d9df;
  --line-soft: #e7e9ed;
  --blue: #1d4f9a;
  --blue2: #2f6fc6;
  --blue-soft: #e9f1fc;
  --orange: #f08300;
  --orange-soft: #fff4e5;
  --red: #d7000f;
  --red-soft: #fdecee;
  --yellow: #fff7c2;
  --th: #e3ecf8;
  --th-ink: #1d3b66;
  --s1: #e3edff; --s2: #e6f6ea; --s3: #fffbe0; --s4: #fff0de; --s5: #ffe6ea; --s6: #fbe1f6;
  --sS: linear-gradient(90deg, #ffe1e1, #fff4cc, #e0f8e6, #dfeeff, #f0e3ff);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px; line-height: 1.8; -webkit-text-size-adjust: 100%;
}
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
.in { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ── サイトのヘッダー ── */
.site-header { background: var(--paper); border-top: 4px solid var(--blue); }
.site-header .in { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.site-logo:hover { text-decoration: none; }
.site-logo b { color: var(--blue); }
.mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 7px;
  background: linear-gradient(135deg, #e3101f, #9e0714); color: #ffd84a; font: 900 22px/1 Arial, sans-serif;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25);
}
.site-desc { margin: 0; font-size: 12px; color: var(--muted); }

.gnav { background: linear-gradient(#2f6fc6, #1d4f9a); border-bottom: 3px solid #143a73; }
.gnav .in { display: flex; overflow-x: auto; scrollbar-width: none; }
.gnav .in::-webkit-scrollbar { display: none; }
.gnav a {
  color: #fff; font-size: 14px; font-weight: 700; padding: 10px 16px; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.18);
}
.gnav a:first-child { border-left: 1px solid rgba(255,255,255,.18); }
.gnav a:hover { background: rgba(255,255,255,.14); text-decoration: none; }

.crumb { font-size: 12px; color: var(--muted); padding: 8px 0; }

/* ── レイアウト ── */
.layout { max-width: 1140px; margin: 0 auto; padding: 0 16px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.post { background: var(--paper); border: 1px solid var(--line-soft); padding: 26px 30px 34px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 16px; align-self: stretch; }

/* ── 記事の頭 ── */
.cat { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); padding: 2px 9px; border-radius: 2px; margin-right: 4px; }
.cat2 { background: var(--orange); }
h1 { font-size: 25px; line-height: 1.45; margin: 10px 0 6px; font-weight: 800; }
.meta { font-size: 12px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }

.machine { display: grid; grid-template-columns: 210px 1fr; gap: 18px; margin: 20px 0; align-items: start; }
.machine-img { margin: 0; background: #f6f7f9; border: 1px solid var(--line-soft); padding: 10px; text-align: center; }
.machine-img svg { width: 100%; height: auto; display: block; }
.machine-img figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; }
.mtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.mtable th { width: 7.5em; background: var(--th); color: var(--th-ink); text-align: left; font-weight: 700; }
.mtable th, .mtable td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }

.points { border: 2px solid var(--orange); margin: 18px 0; background: var(--orange-soft); }
.points-title { background: var(--orange); color: #fff; font-weight: 800; padding: 5px 12px; font-size: 14px; }
.points-title::before { content: "★ "; }
.points ul { margin: 0; padding: 10px 14px 10px 32px; }
.points li { margin: 3px 0; }

.toc-box { border: 1px solid var(--line); background: #fafbfc; margin: 22px 0 10px; padding: 12px 18px 14px; display: inline-block; min-width: 60%; max-width: 100%; }
.toc-title { font-weight: 800; font-size: 15px; text-align: center; letter-spacing: .2em; }
.toc-sw { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--blue2); cursor: pointer; margin-left: 6px; }
#tocToggle:checked ~ .toc-title .toc-sw::after { content: "[閉じる]"; }
#tocToggle:not(:checked) ~ .toc-title .toc-sw::after { content: "[開く]"; }
#tocToggle:not(:checked) ~ .toc-list { display: none; }
.toc-list { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.toc-list > li { margin: 6px 0; }
.toc-list > li > a { color: var(--ink); font-weight: 700; }
.tn { display: inline-block; min-width: 1.6em; color: var(--blue); font-weight: 800; }
.toc-list ol { list-style: none; margin: 2px 0 4px 1.6em; padding: 0; font-size: 13px; }
.toc-list ol li::before { content: "└ "; color: var(--muted); }
.toc-list ol a { color: var(--blue2); }

/* ── 見出し ── */
.sec { margin-top: 34px; }
h2 {
  font-size: 20px; line-height: 1.45; margin: 0 0 16px; padding: 10px 14px;
  color: #fff; background: linear-gradient(#2f6fc6, #1d4f9a); border-bottom: 3px solid #143a73;
  border-radius: 3px 3px 0 0; position: relative;
}
h3 {
  font-size: 17px; line-height: 1.45; margin: 28px 0 12px; padding: 7px 12px;
  background: #f4f6f9; border-left: 6px solid var(--orange); border-bottom: 1px solid var(--line);
}
h4 { font-size: 15px; margin: 18px 0 8px; padding-bottom: 3px; border-bottom: 2px dotted var(--blue2); color: var(--blue); display: inline-block; }
p { margin: 10px 0; }
.lead { font-size: 15px; }
.note, caption { font-size: 12px; color: var(--muted); }
ul.dots { padding-left: 1.3em; margin: 8px 0; }
ul.dots li { margin: 4px 0; }
ul.dots li::marker { color: var(--orange); }
b.red, .red { color: var(--red); font-weight: 800; }

.badge { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 2px; vertical-align: 2px; margin-left: 6px; white-space: nowrap; }
.b-diff { background: var(--red); color: #fff; }
.b-kaiseki { background: #5b6170; color: #fff; }
.b-sim { background: var(--blue2); color: #fff; }
.b-kakutei { background: linear-gradient(90deg, #ff2d2d, #ff9f00, #19c24a, #2079ff, #a03cff); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.b-new { background: var(--orange); color: #fff; }

/* ── 囲み ── */
.box { border: 1px solid var(--line); background: #f8f9fb; padding: 12px 14px; margin: 14px 0; }
.box > :first-child { margin-top: 0; } .box > :last-child { margin-bottom: 0; }
.box.point { border: 2px solid var(--red); background: var(--red-soft); position: relative; padding-top: 22px; }
.box.point::before { content: "ポイント"; position: absolute; top: -1px; left: -1px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 1px 10px; }
.box.info { border-left: 5px solid var(--blue2); background: var(--blue-soft); }
.box.warn { border-left: 5px solid var(--red); background: var(--red-soft); }

/* ── 表 ── */
.tbl { overflow-x: auto; margin: 12px 0 16px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--paper); }
th, td { border: 1px solid var(--line); padding: 7px 8px; text-align: center; vertical-align: middle; }
thead th { background: var(--th); color: var(--th-ink); font-weight: 700; white-space: nowrap; }
tbody th { background: #f6f7f9; font-weight: 700; white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.l, th.l { text-align: left; }
tr.s1 > th:first-child { background: var(--s1); } tr.s2 > th:first-child { background: var(--s2); }
tr.s3 > th:first-child { background: var(--s3); } tr.s4 > th:first-child { background: var(--s4); }
tr.s5 > th:first-child { background: var(--s5); } tr.s6 > th:first-child { background: var(--s6); }
tr.sS > th:first-child { background: var(--sS); }
tbody tr:hover td { background-color: #fbfcfe; }
td.hl { color: var(--red); font-weight: 800; background: var(--yellow); }
td.dim { color: #b0b3ba; }
.tbl.compact table { font-size: 13px; }
.tbl.compact th, .tbl.compact td { padding: 5px 6px; }
caption { caption-side: bottom; text-align: left; padding-top: 6px; }

/* ── フロー ── */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.flow .st { border: 2px solid; padding: 10px 12px; background: #fff; min-height: 104px; }
.flow .st b { display: block; font-size: 15px; }
.flow .st small { display: block; font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.flow .st .tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #fff; padding: 0 6px; margin-bottom: 4px; }
.st.normal { border-color: #5b6170; } .st.normal .tag { background: #5b6170; }
.st.cz { border-color: #1d8a4a; } .st.cz .tag { background: #1d8a4a; }
.st.at { border-color: var(--red); } .st.at .tag { background: var(--red); }
.st.judge { border-color: var(--orange); } .st.judge .tag { background: var(--orange); }
.flow-arrows { font-size: 13px; color: var(--muted); }

.lv-pill { display: inline-block; min-width: 2.4em; padding: 1px 6px; border-radius: 2px; font-weight: 800; font-size: 12px; color: #fff; }
.lcd { display: inline-block; font-weight: 800; padding: 1px 8px; background: #15171c; color: #ffe08a; font-size: 13px; white-space: nowrap; }

details { border: 1px solid var(--line); margin: 12px 0; background: #fff; }
details > summary { cursor: pointer; padding: 8px 12px; font-weight: 700; background: #f4f6f9; list-style: none; color: var(--blue); }
details > summary::before { content: "＋"; margin-right: 8px; font-weight: 800; }
details[open] > summary::before { content: "－"; }
details > div { padding: 4px 12px 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.post-foot { margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }

/* ── サイドバー ── */
.side-box { background: var(--paper); border: 1px solid var(--line-soft); }
.side-title { background: #33363d; color: #fff; font-weight: 800; padding: 8px 12px; font-size: 14px; border-left: 5px solid var(--orange); }
.side-box .tbl { margin: 10px 12px 12px; }
.side-tbl table { font-size: 13px; }
.side-toc { margin: 0; padding: 6px 0; list-style: none; counter-reset: s; font-size: 13px; }
.side-toc li { counter-increment: s; border-bottom: 1px dotted var(--line); }
.side-toc li:last-child { border-bottom: 0; }
.side-toc a { display: block; padding: 7px 12px; color: var(--ink); }
.side-toc a::before { content: counter(s); display: inline-block; width: 1.5em; color: var(--blue); font-weight: 800; }
.side-toc a:hover { background: var(--blue-soft); text-decoration: none; }
.sticky { position: sticky; top: 12px; }
.to-top { display: block; text-align: center; font-size: 12px; padding: 8px; border-top: 1px solid var(--line-soft); }

.site-footer { background: #2b2e35; color: #c9ccd3; font-size: 12px; padding: 22px 0 30px; text-align: center; }
.site-footer p { margin: 6px 0 0; }
.f-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: 15px; }
.f-logo .mark { width: 26px; height: 26px; font-size: 16px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .post { padding: 18px 14px 26px; border-left: 0; border-right: 0; }
  .layout { padding: 0 0 30px; }
  h1 { font-size: 20px; }
  h2 { font-size: 17px; }
  h3 { font-size: 15px; }
  .machine { grid-template-columns: 1fr; }
  .machine-img { max-width: 200px; margin: 0 auto; }
  .toc-box { display: block; min-width: 0; }
  .flow, .grid2 { grid-template-columns: 1fr; }
  .site-logo { font-size: 18px; }
  .site-desc { display: none; }
}
