/* 太田左近宗正の紙面（このページだけの指定。共通の styles.css は変えない） */
.ota-read { --ota-ink: #30353a; --ota-sub: #4a5157; --ota-meta: #5c646b; }
.ota-read .note-panel > p:not([class]) + p:not([class]) { margin-top: 14px; }
.ota-read .note-panel > :is(div, table, dl, ul) { margin-top: 18px; }
.ota-read .note-panel > :is(div, table, dl, ul) + p:not([class]) { margin-top: 18px; }
.ota-read .note-panel > h3 { margin: 28px 0 10px; color: var(--navy); font-size: 18px; line-height: 1.5; }
.ota-read .note-panel > h2 + h3 { margin-top: 14px; }
.ota-read .note-panel > p.ota-aside,
.ota-read .summary-panel > p.ota-sum { margin: 12px 0 0; color: var(--ota-ink); line-height: 1.8; }
.ota-read .summary-panel > p.ota-sum-lead { margin: 0; color: var(--ota-ink); font-size: 17px; line-height: 1.75; font-weight: 700; }
.ota-read .summary-panel > .timeline { margin-top: 18px; }
.ota-read .ota-who { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); margin: 6px 0 0; }
.ota-read .ota-who dt, .ota-read .ota-who dd { margin: 0; padding: 12px 0; border-top: 1px solid rgba(36, 59, 99, 0.12); }
.ota-read .ota-who dt:first-of-type, .ota-read .ota-who dt:first-of-type + dd { border-top: 0; }
.ota-read .ota-who dt { color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.75; }
.ota-read .ota-who dd { color: var(--ota-ink); font-size: 16px; font-weight: 500; line-height: 1.75; }
.ota-read .ota-who dd a { color: #214583; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: rgba(33, 69, 131, 0.6); text-underline-offset: 0.24em; }
.ota-read .ota-who dd a:hover, .ota-read .ota-who dd a:focus-visible { color: #a33d35; text-decoration-color: rgba(163, 61, 53, 0.8); }
.ota-read .ota-flow-label { margin: 22px 0 0; color: var(--ota-meta); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.ota-read .ota-flow-label + .timeline { margin-top: 10px; }
.hero .ota-not { margin: 10px 0 0; color: var(--ota-meta, #5c646b); font-size: 14px; font-weight: 500; }

/* 図・表の箱 */
.ota-read .ota-box { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; }
.ota-read .ota-box-title { margin: 0 0 12px; color: var(--ota-ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
.ota-read .ota-cap { margin: 12px 0 0; color: var(--ota-meta); font-size: 13px; line-height: 1.75; }
.ota-read .ota-cap strong { color: var(--ota-ink); }

/* 関係図：同じ「雑賀」の中の二つの集団 */
.ota-read .ota-area { position: relative; margin-top: 8px; border: 2px dashed #bfae8f; border-radius: 10px; padding: 22px 12px 12px; background: rgba(244, 236, 222, 0.45); }
.ota-read .ota-area-label { position: absolute; top: -11px; left: 12px; padding: 0 6px; background: #fff; color: #6f4a13; font-size: 12px; font-weight: 700; line-height: 20px; }
.ota-read .ota-sides2 { display: grid; grid-template-columns: minmax(0, 1fr) 4.5em minmax(0, 1fr); align-items: center; gap: 8px; }
.ota-read .ota-party { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 12px; }
.ota-read .ota-party b { display: block; color: var(--navy); font-size: 17px; }
.ota-read .ota-party span { display: block; margin-top: 4px; color: var(--ota-sub); font-size: 14px; line-height: 1.7; }
.ota-read .ota-vs { color: var(--ota-meta); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.4; }
.ota-read .ota-vs i { display: block; color: var(--ota-ink); font-size: 20px; font-style: normal; }
.ota-read .ota-help { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px; }
.ota-read .ota-help .ota-party { padding: 8px 12px; }
.ota-read .ota-help p { margin: 0; color: var(--ota-sub); font-size: 14px; line-height: 1.7; }

/* 水攻めのしくみ（模式図） */
.ota-read .ota-water { display: grid; justify-items: center; gap: 4px; }
.ota-read .ota-src { border: 1px solid #9fb9cf; border-radius: 6px; background: var(--sky); padding: 6px 14px; color: var(--ota-ink); font-size: 14px; font-weight: 700; }
.ota-read .ota-arrow { color: var(--ota-meta); font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; }
.ota-read .ota-arrow i { display: block; color: #4f7da3; font-size: 22px; font-style: normal; line-height: 1; }
.ota-read .ota-dike { width: min(100%, 440px); border: 8px solid #8a6a43; border-radius: 50% / 42%; padding: 26px 16px; display: grid; justify-items: center; gap: 8px;
  background: repeating-linear-gradient(-12deg, rgba(79, 125, 163, 0.10) 0 6px, rgba(79, 125, 163, 0.20) 6px 9px), var(--sky); }
.ota-read .ota-water-label { color: #2f5677; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.5; }
.ota-read .ota-castle { border: 2px solid var(--ota-ink); background: #fff; padding: 6px 12px; color: var(--ota-ink); font-size: 15px; font-weight: 700; text-align: center; line-height: 1.45; }
.ota-read .ota-castle small { display: block; color: var(--ota-meta); font-size: 12px; font-weight: 500; }
.ota-read .ota-legend { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ota-read .ota-legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--ota-sub); font-size: 14px; line-height: 1.65; }
.ota-read .ota-sw { width: 22px; height: 14px; margin-top: 5px; border-radius: 3px; }
.ota-read .ota-sw.dike { background: #8a6a43; }
.ota-read .ota-sw.mud { background: var(--sky); border: 1px solid #9fb9cf; }

/* 表 */
.ota-read .ota-table-wrap > .data-table { margin-top: 0; }
.ota-read .ota-sides thead th { font-size: 13px; line-height: 1.45; }
.ota-read .ota-sides th, .ota-read .ota-sides td { padding: 9px 10px; font-size: 14px; line-height: 1.65; }
.ota-read .ota-sides tbody th { width: 7.5em; color: var(--ota-ink); }
.ota-read .ota-sides td { color: var(--ota-sub); }
.ota-read .ota-records th, .ota-read .ota-records td { font-size: 14px; line-height: 1.7; }
.ota-read .ota-records tbody th { width: 10em; color: var(--ota-ink); }
.ota-read .ota-records td { color: var(--ota-sub); }
.ota-read .ota-records td.who { color: var(--ota-ink); font-weight: 700; white-space: nowrap; }

/* 比較のカード（見出しは h4 にせず、カードの札として置く） */
.ota-read .ota-card-head { margin: 0 0 6px; color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.5; }
.ota-read .compare-card p + p { margin-top: 6px; }

/* 文書の中身 */
.ota-read .ota-doc { border: 1px solid var(--line); border-left: 4px solid #8f8576; border-radius: 6px; background: #fff; padding: 12px 14px; }
.ota-read .ota-doc-label { margin: 0; color: var(--ota-meta); font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.ota-read .ota-doc ul { margin: 6px 0 0; padding-left: 1.2em; }
.ota-read .ota-doc li { color: var(--ota-ink); font-size: 15px; line-height: 1.8; }
.ota-read .ota-doc li + li { margin-top: 4px; }

/* 答え（結論の lite 表現と同じ形） */
.ota-read .note-panel > p.ota-answer { margin-top: 18px; border-left: 5px solid var(--red); padding-left: 14px; color: var(--ota-ink); font-size: 16px; line-height: 1.8; }

/* 左近の最期：記録ごとの一覧 */
.ota-read .ota-recs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ota-read .ota-recs li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ota-sub); font-size: 15px; line-height: 1.75; }
.ota-read .ota-recs li b { display: block; color: var(--ota-ink); font-size: 15px; }

/* 今に残る跡 */
.ota-read .ota-remains { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.ota-read .ota-remains dt, .ota-read .ota-remains dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ota-read .ota-remains dt { color: var(--ota-ink); font-weight: 700; padding-right: 10px; }
.ota-read .ota-remains dd { color: var(--ota-sub); font-size: 15px; line-height: 1.75; }

/* 資料欄：資料名のあとの（何の裏付けか）を改行して小さく置く（文字とリンクは公開版と同じ） */
.ota-read .source-list > li > a { display: inline; }
.ota-read .ota-src-what { display: block; margin-top: 2px; font-size: 13px; line-height: 1.65; }

/* L4：吹き出し（読み手の疑問）・手順・箇条（水攻め〜開城で試す） */
.ota-read .note-panel > .ota-ask { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; }
.ota-read .ota-ask-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; line-height: 28px; text-align: center; }
.ota-read .ota-ask > p { position: relative; margin: 0; padding: 6px 12px; border-radius: 12px; background: #edf1f6; color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.6; }
.ota-read .ota-ask > p::before { content: ""; position: absolute; left: -6px; top: 9px; border-style: solid; border-width: 6px 6px 6px 0; border-color: transparent #edf1f6 transparent transparent; }
.ota-read .note-panel > .ota-ask + p:not([class]) { margin-top: 10px; }
.ota-read .note-panel > .ota-says { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ota-read .ota-says li { border-left: 3px solid #c6cfda; padding: 1px 0 1px 12px; color: var(--ota-ink); font-size: 16px; font-weight: var(--body-weight, 400); line-height: 1.8; }
.ota-read .ota-says li b { display: block; color: var(--ota-meta); font-size: 13px; line-height: 1.6; }
.ota-read .note-panel > .ota-steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: ota-step; }
.ota-read .ota-steps > li { position: relative; padding: 0 0 18px 38px; counter-increment: ota-step; color: var(--ota-ink); font-size: 16px; font-weight: var(--body-weight, 400); line-height: 1.8; }
.ota-read .ota-steps > li::before { content: counter(ota-step); position: absolute; left: 0; top: 3px; box-sizing: border-box; width: 24px; height: 24px; border: 2px solid var(--navy); border-radius: 50%; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; line-height: 20px; text-align: center; }
.ota-read .ota-steps > li::after { content: ""; position: absolute; left: 11px; top: 31px; bottom: 6px; width: 2px; background: rgba(36, 59, 99, 0.16); }
.ota-read .ota-steps > li:last-child { padding-bottom: 0; }
.ota-read .ota-steps > li:last-child::after { display: none; }
.ota-read .ota-when { display: block; color: var(--red); font-size: 13px; font-weight: 700; line-height: 1.6; letter-spacing: .03em; }
.ota-read .ota-note { display: block; margin-top: 4px; color: var(--ota-meta); font-size: 14px; font-weight: 400; line-height: 1.7; }
.ota-read .note-panel > .ota-terms { margin-top: 22px; border-left: 4px solid #8f8576; padding: 2px 0 2px 14px; }
.ota-read .ota-terms-head { margin: 0; color: var(--ota-meta); font-size: 13px; font-weight: 700; line-height: 1.6; }
.ota-read .ota-terms dl { margin: 0; }
.ota-read .ota-terms dt { margin-top: 10px; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.5; }
.ota-read .ota-terms dd { margin: 2px 0 0; color: var(--ota-ink); font-size: 16px; font-weight: var(--body-weight, 400); line-height: 1.8; }
.ota-read .note-panel > .ota-tell { margin-top: 12px; display: grid; gap: 14px; }
.ota-read .ota-tell-item + .ota-tell-item { border-top: 1px solid var(--line); padding-top: 14px; }
.ota-read .ota-tell-src { margin: 0; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.6; }
.ota-read .ota-tell-src rt { font-weight: 400; }
.ota-read .ota-tell ul { margin: 6px 0 0; padding-left: 1.2em; }
.ota-read .ota-tell li { color: var(--ota-ink); font-size: 16px; font-weight: var(--body-weight, 400); line-height: 1.8; }
.ota-read .ota-tell li + li { margin-top: 4px; }
.ota-read :is(.ota-says, .ota-steps, .ota-terms, .ota-tell) a { color: #214583; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: rgba(33, 69, 131, 0.6); text-underline-offset: 0.24em; }
.ota-read :is(.ota-says, .ota-steps, .ota-terms, .ota-tell) a:hover { color: #a33d35; text-decoration-color: rgba(163, 61, 53, 0.8); }
@media (min-width: 760px) {
  .ota-read .note-panel > .ota-tell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .ota-read .ota-tell-item + .ota-tell-item { border-top: 0; padding-top: 0; }
}

/* L5：年の札・箇条・人数・日付だけの手順 */
.ota-read .note-panel > p.ota-year { margin: 26px 0 0; color: var(--red); font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: .03em; }
.ota-read .note-panel > h2 + p.ota-year { margin-top: 12px; }
.ota-read .note-panel > p.ota-year + p:not([class]) { margin-top: 6px; }
.ota-read .note-panel > h2 + .ota-steps { margin-top: 14px; }
.ota-read .note-panel > :is(ol, .ota-count) + p:not([class]) { margin-top: 18px; }
.ota-read .note-panel > .ota-list { margin: 10px 0 0; padding-left: 1.2em; }
.ota-read .ota-list li { color: var(--ota-ink); font-size: 16px; font-weight: var(--body-weight, 400); line-height: 1.8; }
.ota-read .ota-list li + li { margin-top: 4px; }
.ota-read .note-panel > .ota-count { margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.ota-read .ota-count-head { margin: 0; color: var(--ota-ink); font-size: 15px; font-weight: var(--body-weight, 400); line-height: 1.75; }
.ota-read .ota-count-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.ota-read .ota-count-row b { display: block; color: var(--navy); font-size: 22px; line-height: 1.3; }
.ota-read .ota-count-row span { display: block; margin-top: 2px; color: var(--ota-meta); font-size: 13px; line-height: 1.5; }
.ota-read .ota-steps.ota-dots > li { padding-left: 30px; }
.ota-read .ota-steps.ota-dots > li::before { content: ""; top: 6px; left: 5px; width: 14px; height: 14px; }
.ota-read .ota-steps.ota-dots > li::after { left: 11px; top: 24px; }
.ota-read .ota-box.plain { border: 0; padding: 0; background: none; }
@media (max-width: 620px) {
  .ota-read .ota-who { grid-template-columns: minmax(0, 1fr); }
  .ota-read .ota-who dt { padding: 12px 0 0; }
  .ota-read .ota-who dd { padding: 2px 0 12px; border-top: 0; }
  .ota-read .ota-who dt:first-of-type { padding-top: 4px; }
  .ota-read .ota-sides thead th { font-size: 12px; }
  .ota-read .ota-sides th, .ota-read .ota-sides td { padding: 8px 7px; font-size: 13.5px; }
  .ota-read .ota-sides tbody th { width: 4.6em; }
  .ota-read .ota-records tbody th { width: auto; padding: 8px 12px; font-size: 14px; }
  .ota-read .ota-records td { padding: 3px 12px; }
  .ota-read .ota-records td.who { white-space: normal; padding-top: 8px; }
  .ota-read .data-table.stack.ota-records td.who::before { display: inline; content: attr(data-label) "："; }
  .ota-read .data-table.stack.ota-records td:not(.who)::before { display: none; }
  .ota-read .data-table.stack.ota-records tr { padding: 0 0 8px; }
  .ota-read .ota-dike { padding: 18px 12px; border-width: 7px; }
  .ota-read .ota-legend li { font-size: 13px; line-height: 1.6; }
  .ota-read .ota-sides2 { grid-template-columns: minmax(0, 1fr) 2.6em minmax(0, 1fr); gap: 4px; }
  .ota-read .ota-area { padding: 20px 8px 8px; }
  .ota-read .ota-party { padding: 8px 9px; }
  .ota-read .ota-party span { font-size: 13px; line-height: 1.6; }
  .ota-read .ota-remains { grid-template-columns: minmax(0, 1fr); }
  .ota-read .ota-remains dt { padding: 10px 0 0; border-bottom: 0; }
  .ota-read .ota-remains dd { padding: 2px 0 10px; }
}
