/* SUKE DOJO ナレッジ資料室 — 共有デザインシステム */
:root {
  --bg: #f6f7f9;
  --ink: #1c2433;
  --sub: #5a6577;
  --body: #4a5468;
  --red: #c73e3e;
  --red-bg: #fbe9e9;
  --cyan: #0f8fa6;
  --cyan-bg: #e2f4f7;
  --line: #e3e7ee;
  --card: #ffffff;
  --warn-bg: #fdf6ec;
  --warn-line: #ecdcc2;
  --ok-bg: #eef7f9;
  --ok-line: #cfe6ec;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.9; font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* ───── 上部バー ───── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,249,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--red) 0 30%, #17a2b8 30% 34%, var(--line) 34%);
}
.topbar-in {
  max-width: 860px; margin: 0 auto; padding: 10px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; letter-spacing: .1em; color: #9aa3b2;
}
.topbar-in b { color: var(--red); }
.topbar-in a { color: var(--sub); text-decoration: none; font-weight: 700; white-space: nowrap; }
.topbar-in a:hover { color: var(--red); }
.topbar-in > span:first-child { white-space: nowrap; }
@media (max-width: 520px) { .topbar-in > span + span { display: none; } }

/* ───── レイアウト ───── */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px 90px; }
section.blk { padding-top: 54px; }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: .2em;
  color: var(--cyan); font-weight: 800; margin-bottom: 10px;
  padding: 3px 12px; background: var(--cyan-bg); border-radius: 999px;
}
h1.doc-title { font-size: 34px; line-height: 1.35; font-weight: 800; letter-spacing: .01em; }
h2.blk-t { font-size: 24px; line-height: 1.45; font-weight: 800; margin-bottom: 6px; }
h2.blk-t .red { color: var(--red); }
p.lead { color: var(--sub); font-size: 14.5px; margin-bottom: 18px; }
p.t { color: var(--body); margin-top: 14px; }
p.t b, li b, td b { color: var(--ink); }
.small { font-size: 13px; color: var(--sub); }

/* ───── カード ───── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; margin-top: 16px;
}
.card.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.card.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.card.ng { border-left: 4px solid var(--red); }
.card.good { border-left: 4px solid var(--cyan); }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 8px;
}
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.cyan { background: var(--cyan-bg); color: var(--cyan); }
.tag.gray { background: #eceff4; color: var(--sub); }

/* ───── 図解：ルートマップ（縦ステッパー） ───── */
.stepper { margin-top: 18px; }
.step {
  display: flex; gap: 16px; position: relative; padding-bottom: 22px;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 0;
  width: 3px; background: linear-gradient(var(--red), var(--red-bg));
  border-radius: 2px;
}
.step-n {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Helvetica Neue", sans-serif; box-shadow: 0 3px 10px rgba(199,62,62,.25);
}
.step-n.cy { background: var(--cyan); box-shadow: 0 3px 10px rgba(15,143,166,.25); }
.step-b { padding-top: 6px; }
.step-b h3 { font-size: 16.5px; font-weight: 800; }
.step-b p { font-size: 13.5px; color: var(--body); margin-top: 2px; }

/* ───── 図解：分岐フロー ───── */
.branch { margin-top: 18px; text-align: center; }
.branch-q {
  display: inline-block; background: var(--ink); color: #fff;
  font-weight: 800; font-size: 15.5px; padding: 10px 26px; border-radius: 999px;
}
.branch-arrows { display: flex; justify-content: center; gap: 60px; height: 34px; }
.branch-arrows span { color: #b6bdc9; font-size: 20px; transform: translateY(6px); }
.branch-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
@media (max-width: 560px) { .branch-cols { grid-template-columns: 1fr; } .branch-arrows { display: none; } .branch-cols .card { margin-top: 12px; } }
.branch-cols .card { margin-top: 0; }
.yn { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.yn.no { color: var(--red); }
.yn.yes { color: var(--cyan); }

/* ───── 図解：AND条件式 ───── */
.androw {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px; flex-wrap: wrap;
}
.and-c {
  width: 104px; height: 104px; border-radius: 50%; background: var(--card);
  border: 3px solid var(--red); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.and-c.c2 { border-color: #d98032; }
.and-c.c3 { border-color: var(--cyan); }
.and-c b { font-size: 15px; }
.and-c span { font-size: 11px; color: var(--sub); line-height: 1.4; }
.and-x { font-size: 22px; font-weight: 800; color: #b6bdc9; }
@media (max-width: 460px) { .and-c { width: 88px; height: 88px; } .and-c b { font-size: 13.5px; } }

/* ───── 図解：横棒（棚の広さ・21本分析） ───── */
.bars { margin-top: 14px; }
.bar-row { margin-top: 12px; }
.bar-row .bl { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.bar-row .bl span:last-child { color: var(--red); font-family: "Helvetica Neue", sans-serif; }
.bar-track { height: 14px; background: #eceff4; border-radius: 999px; margin-top: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), #e07a7a); }
.bar-fill.cy { background: linear-gradient(90deg, var(--cyan), #52b9cb); }

/* ───── 図解：20個テスト ドット ───── */
.dots-meter { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.dots-meter i {
  width: 22px; height: 22px; border-radius: 50%; font-style: normal;
  background: var(--cyan); opacity: .9;
}
.dots-meter i.off { background: #dfe4ec; }

/* ───── 図解：プロフィール模型 ───── */
.phone {
  width: 250px; margin: 18px auto 0; background: #fff; border: 1.5px solid var(--line);
  border-radius: 22px; padding: 16px 14px; box-shadow: 0 8px 26px rgba(28,36,51,.08);
}
.ph-head { display: flex; gap: 10px; align-items: center; }
.ph-ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#dfe4ec,#c8cfda); }
.ph-name { height: 9px; width: 90px; background: #d9dee7; border-radius: 4px; }
.ph-name + .ph-name { width: 60px; margin-top: 5px; }
.ph-bio { margin-top: 10px; }
.ph-bio div { height: 7px; background: #e6eaf0; border-radius: 4px; margin-top: 5px; }
.ph-pin { margin-top: 10px; border: 1.5px dashed var(--red); border-radius: 9px; padding: 7px 9px; font-size: 10.5px; color: var(--red); font-weight: 700; }
.ph-post { margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; }
.ph-post div { height: 6px; background: #edf0f5; border-radius: 3px; margin-top: 4px; }
.ph-mark {
  position: absolute; right: -12px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.phone .rel { position: relative; }

/* ───── 図解：連想チェーン ───── */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.chain .cc {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 15px; font-size: 13.5px; font-weight: 700;
}
.chain .cc.hit { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.chain .ar { color: #b6bdc9; font-weight: 800; }

/* ───── 図解：ずらし2層 ───── */
.zurashi { margin-top: 18px; text-align: center; }
.z-layer { border-radius: 14px; padding: 14px 16px; }
.z-layer.top { background: var(--cyan-bg); border: 1.5px solid #bfe0e8; }
.z-layer.btm { background: var(--red-bg); border: 1.5px solid #efc9c9; }
.z-layer b { font-size: 15px; }
.z-layer p { font-size: 13px; color: var(--body); margin-top: 2px; }
.z-bridge { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.z-bridge span { font-size: 12px; font-weight: 800; color: var(--sub); background: #fff; border: 1px solid var(--line); padding: 2px 14px; border-radius: 999px; }
.z-bridge i { color: #b6bdc9; font-style: normal; font-size: 17px; line-height: 1; }

/* ───── 狐の吹き出し ───── */
.fox { display: flex; gap: 13px; margin-top: 22px; align-items: flex-start; }
.fox img {
  width: 58px; height: 58px; border-radius: 50%; border: 2.5px solid var(--red); flex: none;
}
.fox .bb {
  background: var(--card); border: 1px solid #dfe4ec; border-radius: 14px;
  padding: 13px 17px; font-size: 14.5px; line-height: 1.85; color: #2a3346;
  position: relative; box-shadow: 0 2px 10px rgba(28,36,51,.05);
}
.fox .bb::before {
  content: ""; position: absolute; left: -7px; top: 22px; width: 13px; height: 13px;
  background: var(--card); border-left: 1px solid #dfe4ec; border-bottom: 1px solid #dfe4ec;
  transform: rotate(45deg);
}
.fox .bb b { color: var(--red); }

/* ───── リスト・表 ───── */
ul.dots { list-style: none; margin-top: 10px; }
ul.dots li { padding-left: 18px; position: relative; margin-top: 7px; color: #3a4356; }
ul.dots li::before { content: "・"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
table.tb th { background: var(--ink); color: #fff; font-weight: 700; padding: 9px 12px; text-align: left; font-size: 12.5px; }
table.tb th:first-child { border-radius: 9px 0 0 0; } table.tb th:last-child { border-radius: 0 9px 0 0; }
table.tb td { padding: 9px 12px; border-bottom: 1px solid #edf0f5; color: #3a4356; vertical-align: top; background: var(--card); }
table.tb td.k { font-weight: 800; color: var(--ink); white-space: nowrap; }
.tblwrap { overflow-x: auto; }

/* ───── チップグリッド（13項目など） ───── */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
@media (max-width: 480px) { .chips { grid-template-columns: 1fr; } }
.chips .ch {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 13px; display: flex; gap: 9px; align-items: baseline;
}
.chips .ch b { color: var(--red); font-family: "Helvetica Neue", sans-serif; flex: none; }

/* ───── 要点コールアウト ───── */
.key {
  margin-top: 18px; border-radius: 14px; padding: 18px 20px;
  background: linear-gradient(135deg, var(--red-bg), var(--cyan-bg));
  font-weight: 800; font-size: 16.5px; line-height: 1.7; text-align: center;
}
.key .red { color: var(--red); }

/* ───── 開閉式のくわしく ───── */
details.more { margin-top: 12px; }
details.more summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; color: var(--cyan); background: var(--cyan-bg);
  border-radius: 999px; padding: 4px 15px; user-select: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "＋"; font-weight: 800; }
details.more[open] summary::before { content: "－"; }
details.more .dtl {
  margin-top: 10px; font-size: 13.5px; color: var(--body); line-height: 1.9;
  background: #fafbfc; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px;
}
details.more .dtl b { color: var(--ink); }

/* ───── ✕/✅ の短文行 ───── */
.vs { margin-top: 10px; }
.vs .row { display: flex; gap: 10px; margin-top: 7px; align-items: baseline; font-size: 14px; color: #3a4356; }
.vs .row i { font-style: normal; flex: none; font-weight: 800; }
.vs .row.ng i { color: var(--red); }
.vs .row.ok i { color: var(--cyan); }
.vs .row b { color: var(--ink); }

/* ───── 1行結論 ───── */
.one { font-size: 15.5px; font-weight: 800; line-height: 1.7; margin-top: 4px; }
.one .red { color: var(--red); }

/* ───── 目次・ナビ ───── */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.toc a {
  font-size: 12.5px; font-weight: 700; color: var(--sub); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.toc a:hover { border-color: var(--red); color: var(--red); }
.next-card {
  margin-top: 60px; border-radius: 16px; padding: 24px;
  background: linear-gradient(135deg, var(--red-bg), var(--cyan-bg)); text-align: center;
}
.next-card .tag { background: #fff; }
.next-card a { color: var(--red); font-weight: 800; text-decoration: none; font-size: 17px; }
.hr { border: none; border-top: 1px solid var(--line); margin-top: 54px; }

/* ───── 表紙ヒーロー ───── */
.hero { padding: 64px 0 10px; position: relative; }
.hero .wm {
  position: absolute; right: -10px; top: 8px; font-size: 130px; font-weight: 800;
  color: #e7ebf0; font-family: "Helvetica Neue", sans-serif; line-height: 1; z-index: -1;
}
.hero .series { font-size: 12.5px; letter-spacing: .3em; color: var(--cyan); font-weight: 800; }
.hero .rule { width: 56px; height: 5px; background: var(--red); border-radius: 3px; margin: 16px 0 20px; }
.hero .desc { color: var(--body); margin-top: 16px; }
.hero .meta { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ───── トップページ用 ───── */
.dan { margin-top: 46px; }
.dan-t { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.dan-t span { font-size: 12px; font-weight: 800; color: var(--cyan); background: var(--cyan-bg); border-radius: 999px; padding: 3px 12px; }
.books { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 560px) { .books { grid-template-columns: 1fr; } }
.book {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 17px; text-decoration: none; color: var(--ink); position: relative;
  transition: border-color .15s, transform .15s; display: block;
}
.book:hover { border-color: var(--red); transform: translateY(-2px); }
.book .no { font-family: "Helvetica Neue", sans-serif; font-weight: 800; color: #d9dee7; font-size: 26px; line-height: 1; }
.book h3 { font-size: 15.5px; margin-top: 6px; }
.book p { font-size: 12px; color: var(--sub); margin-top: 3px; }
.book.soon { opacity: .55; pointer-events: none; }
.book .new {
  position: absolute; top: 13px; right: 14px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; letter-spacing: .08em;
}
.updates { margin-top: 14px; }
.updates li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; list-style: none; }
.updates .d { color: var(--sub); font-family: "Helvetica Neue", sans-serif; flex: none; font-size: 12.5px; padding-top: 2px; }

/* ───── 合言葉ゲート ───── */
#gate {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#gate .g-card {
  width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 34px 28px; text-align: center;
  box-shadow: 0 14px 44px rgba(28,36,51,.10);
}
#gate img { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--red); }
#gate h1 { font-size: 19px; margin-top: 14px; }
#gate p { font-size: 13px; color: var(--sub); margin-top: 8px; line-height: 1.8; }
#gate input {
  width: 100%; margin-top: 18px; padding: 12px 16px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 10px; outline: none; text-align: center;
  font-family: inherit;
}
#gate input:focus { border-color: var(--cyan); }
#gate button {
  width: 100%; margin-top: 12px; padding: 12px; font-size: 15px; font-weight: 800;
  background: var(--red); color: #fff; border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit;
}
#gate button:hover { opacity: .92; }
#gate .err { color: var(--red); font-size: 12.5px; margin-top: 10px; display: none; font-weight: 700; }
