/* 編成ボード /hensei/（2026-11-23）。hs- 接頭辞。ボードは黒地＋球団色（--hs-acc・--hs-band、assets/js/hensei.js が入れる）、
 * 12球団一覧はサイト共通の濃紺とライム（stove.css の変数）。上がった＝アクセント色と▲、下がった＝オレンジと▼、変わらず＝グレー。 */
.hs-board { --hs-acc: #ffe100; --hs-band: #ffe100; --hs-down: #ff9d5c; --hs-bg: #0d0d0d; --hs-face: #1a1a1a; --hs-line: #3d3d3d; --hs-track: #2e2e2e;
  --hs-text: #f5f5f5; --hs-sub: #dcdcdc; --hs-mute: #b8b8b8; --hs-grey: #9c9c9c;
  background: var(--hs-bg); color: var(--hs-text); font-family: 'Outfit', 'Noto Sans JP', sans-serif; }
.hs-board, .hs-league { min-height: 60vh; }
.hs-loading, .hs-noscript { max-width: 1240px; margin: 0 auto; padding: 48px 20px; font-size: 16px; }
.hs-band { height: 16px; background: repeating-linear-gradient(90deg, var(--hs-band) 0, var(--hs-band) 22px, var(--hs-bg) 22px, var(--hs-bg) 44px); }
.hs-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 72px; display: flex; flex-direction: column; gap: 36px; box-sizing: border-box; }
.hs-board h1 { margin: 0; font-size: clamp(30px, 6vw, 44px); line-height: 1.15; font-weight: 900; letter-spacing: .01em; }
.hs-board h2 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.3; }
.hs-board h3 { margin: 0; font-size: 17px; font-weight: 800; }
.hs-board a { color: var(--hs-acc); }
.hs-board small { font-size: 12px; }
.hs-lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--hs-sub); max-width: 760px; }
.hs-note { margin: 0; font-size: 13px; line-height: 1.7; color: var(--hs-mute); }
.hs-mute { color: var(--hs-mute); } .hs-grey { color: var(--hs-grey); } .hs-strong { font-weight: 800; }
.hs-acc { color: var(--hs-acc); } .hs-down { color: var(--hs-down); }
.hs-c-acc { color: var(--hs-acc); } .hs-c-down { color: var(--hs-down); } .hs-c-w { color: var(--hs-text); } .hs-c-g { color: var(--hs-mute); } .hs-c-line { color: var(--hs-mute); }
.hs-r { text-align: right; }
.hs-rule { height: 1px; background: var(--hs-line); }
.hs-card { background: var(--hs-face); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-sizing: border-box; }

/* 見出し */
.hs-head { display: flex; flex-direction: column; gap: 20px; }
.hs-teamnav { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-teamnav a { min-height: 44px; min-width: 56px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--hs-text); background: var(--hs-face); border: 1px solid var(--hs-line); }
.hs-teamnav a.is-on { background: var(--hs-acc); border-color: var(--hs-acc); color: #111; }
.hs-teamnav a.hs-teamnav-all { border-color: var(--hs-acc); color: var(--hs-acc); background: transparent; }
.hs-title { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.hs-title-l { display: flex; flex-direction: column; gap: 10px; }
.hs-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.hs-badge { background: var(--hs-acc); color: #111; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 4px; }
.hs-cta, .hs-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-btn { min-height: 52px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 10px; font-weight: 800; font-size: 16px; text-decoration: none; border: 1px solid var(--hs-acc); color: var(--hs-acc); background: transparent; }
.hs-board a.hs-btn.is-primary { background: var(--hs-acc); color: #0d0d0d; }
.hs-board a.hs-btn.is-dark { background: #0d0d0d; color: var(--hs-acc); border: 0; min-height: 56px; font-size: 17px; }
.hs-pill { align-self: flex-start; font-size: 13px; font-weight: 800; background: var(--hs-acc); color: #0d0d0d; padding: 3px 10px; border-radius: 4px; }
.hs-pill.is-w { background: var(--hs-text); }
.hs-changes { background: var(--hs-face); border-radius: 14px; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; font-size: 15px; line-height: 1.7; }
.hs-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-toc a { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 22px; border: 1px solid #6e6e6e; color: var(--hs-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.hs-toc a.is-acc { border-color: var(--hs-acc); color: var(--hs-acc); }
.hs-views { display: flex; flex-direction: column; gap: 10px; }
.hs-tab { min-height: 52px; padding: 0 22px; border-radius: 10px; border: 2px solid #6e6e6e; background: transparent; color: var(--hs-text); font-family: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.hs-tab.is-on { background: var(--hs-acc); border-color: var(--hs-acc); color: #0d0d0d; }

/* もしも */
.hs-ifs { background: var(--hs-face); border: 1px dashed var(--hs-acc); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.hs-ifs h2 { font-size: 20px; } .hs-ifs h3 { font-size: 15px; color: var(--hs-sub); margin-top: 4px; }
.hs-sw-btn { min-height: 48px; padding: 8px 16px; border-radius: 10px; border: 2px solid #6e6e6e; background: transparent; color: var(--hs-text); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-align: left; line-height: 1.5; }
.hs-sw-btn b { display: inline-block; min-width: 2.2em; }
.hs-sw-btn.is-on { border-color: var(--hs-acc); background: color-mix(in srgb, var(--hs-acc) 16%, #0d0d0d); }
.hs-sw-btn:disabled { cursor: not-allowed; opacity: .75; border-style: dashed; }
.hs-cands { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-cand { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.hs-possel { font-size: 13px; color: var(--hs-sub); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hs-possel select { min-height: 36px; background: #0d0d0d; color: var(--hs-text); border: 1px solid #6e6e6e; border-radius: 6px; font: inherit; padding: 0 6px; max-width: 100%; }
.hs-nfs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.hs-nf { background: #0d0d0d; border: 1px solid var(--hs-line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.hs-nf-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 15px; }
.hs-nf-v { font-size: 14px; line-height: 1.7; } .hs-nf-v b { font-size: 22px; color: var(--hs-acc); margin: 0 4px; }
.hs-rot { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; line-height: 1.7; }
.hs-others, .hs-allconds { border-top: 1px solid var(--hs-line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.7; color: var(--hs-sub); }
.hs-chip-btn { min-height: 40px; padding: 4px 12px; border-radius: 8px; border: 1px solid #6e6e6e; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }

/* 全体の数字 */
.hs-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.hs-span2 { grid-column: span 2; }
.hs-k { font-size: 14px; color: var(--hs-mute); font-weight: 700; }
.hs-big-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.hs-big { font-size: 60px; font-weight: 800; line-height: 1; }
.hs-mid { font-size: 44px; font-weight: 800; line-height: 1; } .hs-mid small { font-size: 18px; font-weight: 600; }
.hs-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hs-cnt { font-size: 30px; font-weight: 800; }

/* グラウンド */
.hs-sec-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; }
.hs-legend, .hs-hexleg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--hs-sub); }
.hs-legend span, .hs-hexleg span { display: inline-flex; align-items: center; gap: 6px; }
.lg-acc, .lg-down { width: 18px; height: 8px; border-radius: 2px; display: inline-block; background: var(--hs-acc); } .lg-down { background: var(--hs-down); }
.lg-box { width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--hs-down); box-sizing: border-box; display: inline-block; }
.lg-solid, .lg-dash { width: 22px; border-top: 3px solid var(--hs-acc); display: inline-block; } .lg-dash { border-top: 3px dashed var(--hs-down); }
.hs-ground { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 560px; border-radius: 12px; overflow: hidden; }
.hs-ground img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-spot { position: absolute; transform: translate(-50%, -50%); }
.hs-spot .hs-dot { display: none; }
.hs-pcard { width: 176px; box-sizing: border-box; background: rgba(13,13,13,.9); border: 2px solid var(--hs-line); border-radius: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 7px; }
.hs-pcard.bd-down, .hs-pc.bd-down, .hs-chip.bd-down { border-color: var(--hs-down); } .hs-pcard.bd-acc, .hs-pc.bd-acc, .hs-chip.bd-acc { border-color: var(--hs-acc); }
.hs-pc.bd-w, .hs-chip.bd-w { border-color: var(--hs-text); } .hs-chip.bd-g { border-color: #6e6e6e; } .hs-chip.is-dashed { border-style: dashed; }
.hs-pcard-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.hs-pname { font-size: 19px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; } .hs-ppos { font-size: 13px; font-weight: 700; color: var(--hs-mute); flex: none; }
.hs-pbars { display: grid; grid-template-columns: 18px 1fr 52px; gap: 6px; align-items: center; }
.hs-bl { font-size: 13px; font-weight: 700; color: var(--hs-mute); }
.hs-bv { font-size: 15px; font-weight: 800; text-align: right; } .hs-bv.hs-small { font-size: 13px; }
.hs-bar0, .hs-bar1, .hs-bar2 { position: relative; height: 12px; background: var(--hs-track); border-radius: 2px; }
.hs-bar0 i, .hs-bar2 i { position: absolute; left: 50%; top: -3px; width: 2px; height: 18px; background: var(--hs-text); }
.hs-fill { position: absolute; top: 0; height: 100%; border-radius: 2px; background: var(--hs-acc); }
.hs-bar1 .hs-fill { position: static; display: block; }
.hs-fill.is-down { background: var(--hs-down); } .hs-fill.is-w { background: var(--hs-text); } .hs-fill.is-grey { background: var(--hs-grey); }
.hs-ptag { font-size: 13px; font-weight: 700; line-height: 1.4; }
.hs-cardlist { display: none; }
.hs-lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px 20px; }
.hs-lu { display: grid; grid-template-columns: 22px 104px 1fr 40px; gap: 8px; align-items: center; }
.hs-lu-no { font-size: 16px; font-weight: 800; color: var(--hs-acc); }
.hs-lu-n { font-size: 15px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; } .hs-lu-n small { font-size: 11px; color: var(--hs-mute); }
.hs-bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hs-bc { background: #0d0d0d; border: 1px solid var(--hs-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 15px; font-weight: 800; }
.hs-bc small { font-size: 12px; font-weight: 500; color: var(--hs-sub); }
.hs-bc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; } .hs-bc-h small { font-weight: 700; }

/* 六角形・強み弱み */
.hs-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.hs-hex { width: 100%; max-width: 600px; align-self: center; }
.hs-hex26 { fill: color-mix(in srgb, var(--hs-acc) 22%, transparent); stroke: var(--hs-acc); stroke-width: 2.5; }
.hs-hexnow { fill: none; stroke: var(--hs-down); stroke-width: 2.5; stroke-dasharray: 6 5; }
.hs-svg-lab2 { font: 700 13px 'Noto Sans JP', sans-serif; fill: var(--hs-text); } .hs-svg-val { font: 600 12px 'Outfit', 'Noto Sans JP', sans-serif; fill: var(--hs-mute); }
.hs-sw { display: grid; grid-template-columns: 52px 1fr 108px 44px; gap: 10px; align-items: center; }
.hs-sw-h { font-size: 13px; font-weight: 800; }
.hs-sw-axis { display: flex; justify-content: space-between; }
.hs-sw-pos { font-size: 17px; font-weight: 800; }
.hs-bar2 { height: 18px; border-radius: 3px; } .hs-bar2 i { top: -4px; height: 26px; }
.hs-was { position: absolute; top: -4px; height: 26px; border-left: 3px dotted var(--hs-text); }
.hs-sw-v { font-size: 16px; font-weight: 800; line-height: 1.25; text-align: right; } .hs-sw-v small { display: block; font-size: 11px; color: var(--hs-mute); }

/* 投手 */
.hs-pitch-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.hs-mound { flex: 1 1 520px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.hs-mound-bg { position: relative; border-radius: 12px; overflow: hidden; }
.hs-mound-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-mound-in { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 18px; min-height: 1040px; justify-content: space-between; box-sizing: border-box; }
.hs-pg { display: flex; flex-direction: column; gap: 8px; }
.hs-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hs-pc { box-sizing: border-box; background: rgba(13,13,13,.9); border: 2px solid var(--hs-line); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hs-pc .hs-pcard-h small { font-weight: 700; text-align: right; }
.hs-pn { font-size: 17px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.hs-pitch-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hs-read { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hs-rd { background: #0d0d0d; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hs-rd-v { font-size: 30px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; } .hs-rd-v small { font-size: 15px; color: var(--hs-text); }
.hs-sv { display: grid; grid-template-columns: 64px 1fr 24px; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; } .hs-sv b { text-align: right; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-chip { font-size: 13px; padding: 4px 9px; border-radius: 6px; background: #0d0d0d; border: 1px solid var(--hs-line); color: var(--hs-text); font-weight: 700; }
.hs-chip small { font-size: 12px; font-weight: 700; }
.hs-rules { display: grid; grid-template-columns: 64px 1fr; gap: 8px 12px; font-size: 14px; line-height: 1.6; color: var(--hs-sub); }

/* ポジション別 */
.hs-cmp-scroll { overflow-x: auto; }
.hs-cmp { min-width: 820px; display: flex; flex-direction: column; }
.hs-cmp-r { display: grid; grid-template-columns: 60px minmax(0, 1fr) 28px minmax(0, 1fr); gap: 14px; padding: 16px 0; align-items: center; border-bottom: 1px solid var(--hs-track); }
.hs-cmp-head { padding: 0 0 10px; border-bottom: 1px solid var(--hs-line); align-items: end; font-size: 18px; }
.hs-cmp-head small { font-size: 13px; }
.hs-cmp-c { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hs-cmp-v { display: flex; align-items: center; gap: 10px; } .hs-cmp-v .hs-bar1 { flex: 1; height: 10px; }
.hs-cmp-n { font-size: 22px; font-weight: 800; width: 64px; flex: none; }
.hs-cmp-rk { font-size: 13px; font-weight: 800; width: 40px; flex: none; text-align: right; }
.hs-cmp-d { font-size: 13px; font-weight: 800; width: 88px; flex: none; text-align: right; }

/* 動き */
.hs-mv { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.hs-mv-sub { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; }
.hs-mv-tag { flex: none; width: 96px; box-sizing: border-box; text-align: center; font-size: 12px; font-weight: 800; padding: 4px 2px; border-radius: 4px; color: #0d0d0d; }
.hs-bg-acc { background: var(--hs-acc); } .hs-bg-down { background: var(--hs-down); } .hs-bg-w { background: var(--hs-text); } .hs-bg-g { background: var(--hs-mute); }

/* シミュレーションへ */
.hs-gm { background: var(--hs-acc); color: #0d0d0d; border-radius: 14px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.hs-gm-t { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.hs-gm h2 { font-size: 28px; font-weight: 900; } .hs-gm p { margin: 0; font-size: 16px; line-height: 1.7; } .hs-gm .hs-strong { font-size: 17px; }
.hs-foot { font-size: 13px; line-height: 1.8; color: var(--hs-mute); }

/* スマホ・タブレット: グラウンドのカードは写真の下に並べる（重ならないように）。写真には位置の札だけ */
@media (max-width: 1100px) {
  .hs-ground { min-height: 0; }
  .hs-spot .hs-pcard { display: none; }
  .hs-spot .hs-dot { display: inline-block; background: rgba(13,13,13,.85); border: 2px solid var(--hs-acc); color: var(--hs-text); font-size: 13px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
  .hs-cardlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
  .hs-cardlist .hs-pcard { width: auto; }
}
@media (max-width: 640px) {
  .hs-wrap { padding: 20px 16px 56px; gap: 28px; }
  .hs-span2 { grid-column: auto; }
  .hs-big { font-size: 48px; }
  .hs-card, .hs-ifs { padding: 18px 16px; }
  .hs-sw { grid-template-columns: 40px 1fr 92px 34px; gap: 8px; }
  .hs-sw-v { font-size: 14px; }
  .hs-read { grid-template-columns: 1fr; }
  .hs-mound-in { min-height: 0; padding: 14px; }
  .hs-pgrid { grid-template-columns: 1fr 1fr; }
  .hs-pbars { grid-template-columns: 16px 1fr 46px; }
  .hs-gm { padding: 22px 18px; } .hs-gm h2 { font-size: 22px; }
  .hs-mv-tag { width: 84px; }
  .hs-lu { grid-template-columns: 22px 96px 1fr 36px; }
}
@media (max-width: 400px) { .hs-pgrid { grid-template-columns: 1fr; } }

/* ================================================================ 12球団一覧（濃紺とライム） */
.hs-league { background: var(--sl-bg, #0B1530); color: var(--sl-text, #F4F7FF); font-family: 'Outfit', 'Noto Sans JP', sans-serif; }
.hs-league-wrap { gap: 32px; padding-top: 36px; }
.hs-lg-head { display: flex; flex-direction: column; gap: 10px; }
.hs-league h1 { margin: 0; font-size: clamp(30px, 6vw, 44px); line-height: 1.15; font-weight: 900; }
.hs-league h2 { margin: 0; font-size: 26px; font-weight: 800; }
.hs-league .hs-mute { color: var(--sl-sub, #B7C4E4); } .hs-league .hs-lead { color: var(--sl-chip, #D5DEF5); }
.hs-lime { color: var(--sl-accent, #C6F432); } .hs-league .hs-down { color: #ffb27d; }
.hs-lg-note { font-size: 14px; line-height: 1.7; color: var(--sl-chip, #D5DEF5); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.hs-league .hs-chip-btn { border-color: var(--sl-line-2, #44568A); color: var(--sl-text, #F4F7FF); }
.hs-lg-sec { display: flex; flex-direction: column; gap: 16px; }
.hs-lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.hs-lg-card { display: flex; flex-direction: column; gap: 10px; background: var(--sl-face, #121F42); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--sl-text, #F4F7FF); border-top: 6px solid var(--sl-accent, #C6F432); }
.hs-lg-card:hover { outline: 2px solid var(--sl-accent, #C6F432); }
.hs-lg-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hs-lg-name { font-size: 22px; font-weight: 800; } .hs-lg-go { font-size: 13px; font-weight: 700; color: var(--sl-accent, #C6F432); }
.hs-lg-card svg { width: 100%; }
.hs-svg-lab { font: 700 12px 'Noto Sans JP', sans-serif; fill: #c9d4ee; }
.hs-lg-sw { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.6; }
.hs-league .hs-foot { color: var(--sl-sub, #B7C4E4); }
.hs-cta-w { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
