/* マニュアル専用。style.css を読み込んだ上で追加する */

.wrap-manual { max-width: 820px; }
.wrap-manual .card { padding: 26px 24px; }
.wrap-manual p { font-size: 15px; }

.m-h2 {
  font-size: 19px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.m-h3 { font-size: 14px; color: var(--accent); margin: 28px 0 10px; }
.m-note { font-size: 12px !important; color: var(--muted); margin: 16px 0 0; }
.m-note b { color: var(--text); }

/* ── 目次 ───────────────────────────── */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.toc a {
  font-size: 12px;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
}
.toc a:hover { color: var(--text); border-color: var(--accent); }

/* ── 2階建て図 ──────────────────────── */
.two-floor { display: flex; align-items: stretch; gap: 10px; margin: 20px 0 14px; }
.floor {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #0d0f14;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.floor-vs { align-self: center; color: var(--muted); font-size: 18px; }
.floor-tag {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #17130a;
  background: var(--accent);
  border-radius: 50%;
}
.floor-t { font-weight: 600; margin: 0 0 4px; font-size: 15px !important; }
.floor-d { font-size: 12px !important; color: var(--muted); margin: 0; line-height: 1.7; }
.floor-d strong { color: var(--text); }
.floor-eq {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #0d0f14;
  border: 1px solid var(--accent);
  border-radius: 10px;
  margin: 0;
  font-size: 14px !important;
}
@media (max-width: 600px) {
  .two-floor { flex-direction: column; }
  .floor-vs { align-self: center; }
}

.callout {
  margin-top: 18px;
  padding: 14px 16px;
  background: #16130b;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.callout p { margin: 0; font-size: 13px !important; line-height: 1.8; }

/* ── 五行図 ─────────────────────────── */
.svg-box {
  margin: 20px 0 14px;
  padding: 10px;
  background: #0d0f14;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.gogyo-svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.gogyo-svg .sheng { stroke: #5fb37a; stroke-width: 2.5; }
.gogyo-svg .ke { stroke: #e2614a; stroke-width: 1.6; stroke-dasharray: 5 4; opacity: 0.85; }
.gogyo-svg .node-t {
  font-size: 26px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-anchor: middle;
  dominant-baseline: central;
}

.legend { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.legend strong { color: var(--text); }
.legend span { display: flex; align-items: center; gap: 8px; }
.lg-line { width: 26px; height: 0; flex-shrink: 0; }
.lg-sheng { border-top: 2.5px solid #5fb37a; }
.lg-ke { border-top: 1.6px dashed #e2614a; }

/* ── 表 ─────────────────────────────── */
.t-scroll { overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; }
.m-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}
.m-table th, .m-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.m-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: #0d0f14;
  position: sticky;
  top: 0;
}
.m-table tbody tr:hover { background: #12151c; }
.m-table .td-sm { font-size: 12px; color: var(--muted); line-height: 1.7; }
.m-table .td-nw { white-space: nowrap; }
.m-table .el { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 15px; }
.td-el .el { font-size: 22px; }
.td-rel { white-space: nowrap; }
.arw { color: #5fb37a; margin: 0 2px; }
.arw-ke { color: #e2614a; }

.t-types { min-width: 680px; }
.t-types .td-stem {
  font-size: 30px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: var(--row);
  text-align: center;
  line-height: 1.2;
}
.t-types tbody tr { border-left: 3px solid var(--row); }
.pol { font-size: 11px; color: var(--muted); }

.tone-good td:nth-child(3) b { color: #5fb37a; }
.tone-warn td:nth-child(3) b { color: #e2a34a; }
.tone-same td:nth-child(3) b { color: var(--accent); }

/* ── 陰陽 ───────────────────────────── */
.yy { display: flex; gap: 12px; margin: 18px 0; }
.yy-col {
  flex: 1;
  padding: 16px;
  background: #0d0f14;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.yy-col p { margin: 0; font-size: 13px !important; line-height: 1.8; }
.yy-col span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.yy-h { font-weight: 600; margin-bottom: 8px !important; font-size: 15px !important; }
.yy-h-yo { color: #e2b04a; }
.yy-h-in { color: #7fa6d8; }
@media (max-width: 600px) { .yy { flex-direction: column; } }

/* ── 読み方 ─────────────────────────── */
.howto dt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 15px;
}
.howto dt:first-child { margin-top: 0; }
.howto dd {
  margin: 8px 0 0 34px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.howto dd b, .howto dd strong { color: var(--text); }
@media (max-width: 600px) { .howto dd { margin-left: 0; } }
