/* =========================================================================
   npb-draft.css — NPBドラフト分析特集 /npb-draft/（2026-09-30 リデザイン）
   旧版は tigers-magic.css の .tmg 骨組みに色だけ上書きしていたが、
   このリデザインで独立させた（tigers-magic.css は読み込まない・影響しない）。
   阪神=金、競馬=緑、ドラフト=青 のルールは維持。
   ========================================================================= */

.nd-page {
  --nd-bg: #eef1f4;
  --nd-surface: #ffffff;
  --nd-text: #14202b;
  --nd-sub: #4a5a69;
  --nd-blue: #2b5f8a;
  --nd-blue-hover: #1d4466;
  --nd-line: #d5dde5;
  --nd-soft: #e3ecf4;
  /* 両テーマ共通 */
  --nd-navy: #0e1b28;
  --nd-grid: #172a3b;
  --nd-sky: #8fc0e4;
  --nd-on-navy: #f2f6fa;
  --nd-on-navy-sub: #a9bccd;
  --nd-on-navy-3: #c6d6e4;
  --nd-navy-line: #2c4a66;
  --nd-f-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --nd-f-min: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
html[data-theme="dark"] .nd-page {
  --nd-bg: #0b1117;
  --nd-surface: #121a22;
  --nd-text: #e3e9ef;
  --nd-sub: #9fb0c0;
  --nd-blue: #7fb0d6;
  --nd-blue-hover: #a9cbe6;
  --nd-line: #22303c;
  --nd-soft: #16222e;
}

html, body.nd-page { margin: 0; padding: 0; }
body.nd-page {
  background: var(--nd-bg);
  color: var(--nd-text);
  font-family: var(--nd-f-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}
.nd-page *, .nd-page *::before, .nd-page *::after { box-sizing: border-box; }
.nd-page main a { color: var(--nd-blue); }
.nd-page main a:hover { color: var(--nd-blue-hover); }
.nd-page h1, .nd-page h2, .nd-page h3, .nd-page p, .nd-page ul, .nd-page ol { margin: 0; }
.nd-page button { font-family: inherit; }
.nd-page .m { font-family: var(--nd-f-min); font-weight: 700; font-feature-settings: "tnum"; }
.nd-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.nd-kicker { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--nd-blue); line-height: 1.5; }
.nd-note { font-size: 12px; color: var(--nd-sub); line-height: 1.8; }

.nd-crumb { background: var(--nd-navy); font-size: 12px; color: var(--nd-on-navy-sub); padding-top: 14px; }
.nd-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.nd-crumb li { display: flex; gap: 8px; }
.nd-crumb li + li::before { content: "›"; }
.nd-page .nd-crumb a { color: var(--nd-on-navy-sub); text-decoration: none; }
.nd-page .nd-crumb a:hover { color: var(--nd-on-navy); text-decoration: underline; }

/* ── ヒーロー（紺の方眼） ── */
.nd-hero {
  background-color: var(--nd-navy);
  background-image: linear-gradient(var(--nd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--nd-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--nd-on-navy);
}
.nd-hero-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.nd-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: end; }
.nd-hero-main { display: flex; flex-direction: column; gap: 18px; }
.nd-hero .nd-kicker { color: var(--nd-sky); letter-spacing: .22em; }
.nd-hero h1 { font-size: 60px; line-height: 1.15; color: var(--nd-on-navy); }
.nd-hero-lead { max-width: 560px; color: var(--nd-on-navy-sub); }
.nd-pills { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; }
.nd-pills li { font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--nd-navy-line); color: var(--nd-on-navy-3); line-height: 1.6; }
.nd-question {
  border: 1px solid var(--nd-navy-line); background: var(--nd-navy); border-radius: 6px;
  padding: 28px; display: flex; flex-direction: column; gap: 6px;
}
.nd-question .nd-kicker { color: var(--nd-sky); }
.nd-question-title { font-size: 20px; color: var(--nd-on-navy); line-height: 1.5; }
.nd-question-num { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; line-height: 1; }
.nd-question-num .m { font-size: 88px; color: var(--nd-sky); }
.nd-question-num span:last-child { font-size: 14px; color: var(--nd-on-navy-sub); }
.nd-question p { font-size: 13px; color: var(--nd-on-navy-sub); line-height: 1.8; }
.nd-question p strong { color: var(--nd-on-navy); }
.nd-qindex { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--nd-navy-line); list-style: none; padding: 0; }
.nd-qindex a {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 4px 0; text-decoration: none; min-height: 44px;
}
.nd-qindex .q { font-size: 18px; color: var(--nd-sky); line-height: 1.3; }
.nd-qindex .t { font-size: 11.5px; color: var(--nd-on-navy-sub); line-height: 1.5; }
.nd-page .nd-qindex a:hover .t { color: var(--nd-on-navy); text-decoration: underline; }

/* ── ページ内タブ ── */
.nd-tabbar { background: var(--nd-surface); border-bottom: 1px solid var(--nd-line); }
.nd-tabbar .st-tablist { display: flex; gap: 36px; }
.nd-tabbar [role="tab"] {
  min-height: 56px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--nd-sub); white-space: nowrap;
}
.nd-tabbar [role="tab"] span { font-size: 12px; color: var(--nd-sub); margin-left: 2px; }
.nd-tabbar [role="tab"][aria-selected="true"] { color: var(--nd-text); font-weight: 700; border-bottom-color: var(--nd-blue); }
.nd-tabbar [role="tab"]:focus-visible { outline: 2px solid var(--nd-blue); outline-offset: 2px; }
.nd-panels { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 48px; }
.nd-panels .st-panel-heading { font-size: 22px; margin-bottom: 8px; }
.nd-intro { color: var(--nd-sub); max-width: 760px; margin-bottom: 8px; }

.nd-q { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding: 28px 0; border-top: 1px solid var(--nd-line); scroll-margin-top: 16px; }
.nd-q-head { display: flex; flex-direction: column; gap: 8px; }
.nd-q-no { font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--nd-blue); }
.nd-q-title { font-size: 20px; line-height: 1.45; }
.nd-q-lead { font-size: 13px; color: var(--nd-sub); line-height: 1.8; }
.nd-arts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; list-style: none; padding: 0; }
.nd-page .nd-art {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px;
  background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 6px;
  text-decoration: none; color: var(--nd-text); line-height: 1.6;
  transition: border-color .15s ease, transform .15s ease;
}
.nd-page .nd-art:hover { border-color: var(--nd-blue); color: var(--nd-text); transform: translateY(-1px); }
.nd-art-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--nd-sub); line-height: 1.5; }
.nd-art-meta .m { white-space: nowrap; }
.nd-art-cat { font-size: 11px; font-weight: 700; color: var(--nd-blue); letter-spacing: .06em; }
.nd-art-title { font-size: 16px; line-height: 1.55; }
.nd-art-excerpt { font-size: 13px; color: var(--nd-sub); line-height: 1.8; }
.nd-art-more { font-size: 12px; font-weight: 700; color: var(--nd-blue); margin-top: auto; }

.nd-teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.nd-page .nd-team {
  display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 24px;
  background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 6px;
  text-decoration: none; color: var(--nd-text); line-height: 1.6;
}
.nd-page .nd-team:hover { border-color: var(--nd-blue); color: var(--nd-text); }
.nd-team-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.nd-team-head .n { font-size: 24px; }
.nd-team-head .d { font-size: 12px; color: var(--nd-sub); }
.nd-team-pick { background: var(--nd-soft); border-radius: 4px; padding: 12px 14px; }
.nd-team-pick .k { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--nd-blue); display: block; }
.nd-team-pick .v { font-size: 22px; display: block; line-height: 1.4; }
.nd-team-s { font-size: 13px; color: var(--nd-sub); }
.nd-team-more { font-size: 12px; font-weight: 700; color: var(--nd-blue); margin-top: auto; }

/* ── METHOD / NEXT ── */
.nd-method { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding-bottom: 56px; }
.nd-method-card { background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 6px; padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.nd-method-card h2 { font-size: 22px; line-height: 1.5; margin-top: -8px; }
.nd-method-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.nd-method-3 li { display: flex; flex-direction: column; gap: 6px; }
.nd-method-3 .m { font-size: 15px; line-height: 1.5; }
.nd-method-3 span:last-child { font-size: 13px; color: var(--nd-sub); line-height: 1.8; }
.nd-method-card .nd-body p { color: var(--nd-text); font-size: 15px; }
.nd-method-card .nd-body p + p { margin-top: 12px; }
.nd-next { background: var(--nd-navy); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 12px; color: var(--nd-on-navy-sub); }
.nd-next .nd-kicker { color: var(--nd-sky); }
.nd-next-title { font-size: 19px; line-height: 1.5; color: var(--nd-on-navy); }
.nd-next p { font-size: 13px; line-height: 1.8; }
.nd-page .nd-next-btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: 4px; border: 1px solid var(--nd-sky); color: var(--nd-sky); font-size: 13px; font-weight: 700; text-decoration: none;
}
.nd-page .nd-next-btn:hover { background: rgba(143,192,228,0.1); color: var(--nd-on-navy); }

/* ── 下部（現行ページの 02〜07 を中身そのまま残す） ── */
.nd-more { padding-bottom: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nd-block { background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 6px; padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.nd-block--wide { grid-column: 1 / -1; }
.nd-block h2 { font-size: 20px; line-height: 1.5; }
.nd-block p { font-size: 15px; }
.nd-block ul { padding-left: 1.2em; font-size: 15px; }
.nd-block li + li { margin-top: 6px; }
.nd-page .nd-x-follow {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--nd-text); color: var(--nd-bg); font-size: 14px; font-weight: 700; text-decoration: none;
}
.nd-page .nd-x-follow:hover { color: var(--nd-bg); opacity: .88; }
.nd-x-follow svg { width: 16px; height: 16px; fill: currentColor; }

/* =========================================================================
   レスポンシブ
   ========================================================================= */
@media (max-width: 1100px) {
  .nd-hero-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .nd-question { max-width: 520px; }
  .nd-qindex { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nd-q { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
  .nd-method { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nd-arts { grid-template-columns: minmax(0, 1fr); }
  .nd-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nd-method-3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nd-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .nd-wrap { padding: 0 16px; }
  .nd-hero { background-size: 24px 24px; }
  .nd-hero-inner { padding-top: 24px; padding-bottom: 28px; gap: 20px; }
  .nd-hero-main { gap: 14px; }
  .nd-hero .nd-kicker { font-size: 10px; }
  .nd-hero h1 { font-size: 38px; line-height: 1.2; }
  .nd-hero-lead { font-size: 14px; }
  .nd-question { padding: 18px; }
  .nd-question-title { font-size: 16px; }
  .nd-question-num .m { font-size: 60px; }
  .nd-qindex { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .nd-qindex a { padding: 10px 0 2px; }
  .nd-tabbar .st-tablist { gap: 28px; }
  .nd-tabbar [role="tab"] { min-height: 48px; font-size: 14px; }
  .nd-panels { padding-top: 16px; padding-bottom: 40px; gap: 32px; }
  .nd-intro { font-size: 14px; }
  .nd-q { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 0; }
  .nd-q-head { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
  .nd-q-no { font-size: 32px; -webkit-text-stroke-width: 1px; }
  .nd-q-title { font-size: 17px; flex: 1 1 200px; }
  .nd-q-lead { flex-basis: 100%; }
  .nd-arts { gap: 10px; }
  .nd-page .nd-art { padding: 14px 16px; gap: 6px; }
  .nd-art-title { font-size: 15px; }
  .nd-teams { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nd-page .nd-team { padding: 16px; gap: 10px; }
  .nd-team-head .n { font-size: 19px; }
  .nd-team-pick .v { font-size: 17px; }
  .nd-method { padding-bottom: 40px; gap: 14px; }
  .nd-method-card, .nd-next, .nd-block { padding: 20px; }
  .nd-method-card h2 { font-size: 18px; margin-top: -4px; }
  .nd-next-title { font-size: 17px; }
  .nd-more { gap: 14px; padding-bottom: 48px; }
  .nd-block h2 { font-size: 18px; }
  .nd-block p, .nd-block ul { font-size: 14px; }
}
.nd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
