@charset "UTF-8";
.compare-tools {
  margin-block: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}
.compare-tools > summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
}
.compare-tools[open] > summary {
  border-bottom: 1px solid #e5e5e5;
}
.compare-tools button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d7dde4;
  border-radius: 5px;
  background: #fff;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.compare-tools button:hover {
  background: #f3f5f7;
  border-color: #26364a;
}
.compare-tools button:disabled {
  cursor: default;
  opacity: 0.5;
}
.compare-tools select, .compare-tools input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #d7dde4;
  border-radius: 5px;
  background: #fff;
  font-size: 0.875rem;
}
.compare-tools h2 {
  margin-block: 20px 8px;
  font-size: 1rem;
}
.compare-tools h3 {
  margin-top: 20px;
  font-size: 0.875rem;
}

.compare-tools-body {
  padding: 16px;
  min-width: 0;
}

.compare-tools-help {
  color: #595959;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.compare-tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.compare-tools-status {
  margin-top: 8px;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.compare-tools-status:empty {
  margin: 0;
}

.compare-tools-manual {
  margin-top: 12px;
  font-size: 0.8125rem;
}

.compare-tools-manual input {
  margin-top: 4px;
}

.compare-tools-selectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block: 12px;
}

.compare-tools-selectors label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 0.8125rem;
}

.compare-tools-result {
  margin-top: 16px;
  min-width: 0;
}

.compare-tools-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.compare-tools-scroll table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.compare-tools-scroll caption {
  text-align: left;
  font-size: 0.8125rem;
  padding-bottom: 8px;
}

.compare-tools-scroll th, .compare-tools-scroll td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  white-space: nowrap;
  font-size: 0.875rem;
  text-align: right;
}

.compare-tools-scroll th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: #fff;
}

.compare-tools-scroll thead th {
  background: #f5f5f5;
}

.compare-tools-scroll-hint {
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: #595959;
}

.compare-tools-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.625rem;
}

.compare-tools-chart {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin-top: 12px;
}

.compare-tools-chart text {
  fill: #595959;
  font-size: 11px;
}

@media (max-width: 767px) {
  .compare-tools-body {
    padding: 12px;
  }
  .compare-tools-selectors {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .compare-tools-actions > button {
    flex: 1 1 145px;
  }
}
.dh-comparison {
  margin-top: 40px;
  padding-block: 28px;
  border-top: 1px solid #d9d9d9;
  min-width: 0;
}
.dh-comparison h2 {
  font-size: 1.25rem;
  line-height: 1.5;
}
.dh-comparison-intro {
  margin-top: 8px;
  font-size: 0.875rem;
}
.dh-comparison-status {
  margin-top: 12px;
  padding: 12px 16px;
  background: #f5f5f5;
  font-size: 0.875rem;
  line-height: 1.7;
}
.dh-comparison-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  margin-block: 20px 12px;
}
.dh-comparison-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
}
.dh-comparison-controls select {
  min-height: 44px;
  min-width: 180px;
  padding: 8px 36px 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
}
.dh-comparison-modes {
  display: flex;
  padding: 3px;
  gap: 3px;
  background: #f5f5f5;
  border-radius: 6px;
}
.dh-comparison-modes button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.8125rem;
}
.dh-comparison-modes [aria-pressed=true] {
  background: #26364a;
  color: #fff;
  font-weight: 700;
}
.dh-comparison-scroll-hint {
  display: none;
  margin-bottom: 6px;
  color: #595959;
  font-size: 0.75rem;
}
.dh-comparison-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.dh-comparison table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.dh-comparison caption {
  padding-block: 4px 12px;
  font-weight: 700;
  text-align: left;
}
.dh-comparison th, .dh-comparison td {
  padding: 12px 16px;
  border-bottom: 1px solid #d9d9d9;
  text-align: right;
  white-space: nowrap;
}
.dh-comparison thead th {
  background: #f5f5f5;
  font-size: 0.8125rem;
}
.dh-comparison th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 110px;
  text-align: left;
  background: #fff;
}
.dh-comparison thead th:first-child {
  background: #f5f5f5;
  z-index: 2;
}
.dh-comparison td strong, .dh-comparison td small {
  display: block;
}
.dh-comparison td strong {
  font-size: 1.125rem;
}
.dh-comparison td small {
  margin-top: 3px;
  color: #595959;
  font-size: 0.75rem;
}
.dh-comparison-total th, .dh-comparison-total td {
  border-top: 2px solid #000;
  font-weight: 700;
}
.dh-comparison-note {
  margin-top: 12px;
  color: #595959;
  font-size: 0.75rem;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .dh-comparison {
    margin-top: 28px;
    padding-block: 24px;
  }
  .dh-comparison-controls {
    gap: 12px;
  }
  .dh-comparison-controls select {
    min-width: 160px;
  }
  .dh-comparison-scroll-hint {
    display: block;
  }
  .dh-comparison th, .dh-comparison td {
    padding: 10px 12px;
  }
}

/* 個別ページと相互リンク */
.entity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-block: 10px 16px;
  font-size: 0.8125rem;
}

.directory {
  padding-block: 28px;
  border-top: 1px solid #d9d9d9;
  margin-top: 32px;
}
.directory h2 {
  font-size: 1rem;
}
.directory ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  list-style: none;
}
.directory p {
  font-size: 0.875rem;
}

.entity-page .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-block: 18px;
  font-size: 0.8125rem;
}
.entity-page .entity-intro {
  padding-block: 12px 24px;
  border-bottom: 1px solid #d9d9d9;
}
.entity-page h1 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.5;
}
.entity-page .entity-intro p {
  margin-top: 12px;
}
.entity-page .entity-workspace {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  align-items: flex-start;
}
.entity-page .entity-content {
  flex: 1;
  min-width: 0;
}
.entity-page .entity-content > h2 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
.entity-page .entity-content > p {
  margin-top: 12px;
}
.entity-page .entity-simulator {
  flex: 0 0 clamp(320px, 35vw, 480px);
  min-width: 0;
}
.entity-page .simulator {
  width: 100%;
}
.entity-page .entity-player-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 24px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}
.entity-page .entity-player-label select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  background: #fff;
}
.entity-page .entity-table table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.entity-page .entity-table caption {
  text-align: left;
  font-size: 0.8125rem;
  color: #595959;
  padding-bottom: 12px;
  white-space: normal;
}
.entity-page .entity-table th, .entity-page .entity-table td {
  text-align: right;
  padding: 10px 8px;
  border-bottom: 1px solid #d9d9d9;
  font-size: 0.875rem;
}
.entity-page .entity-table th:first-child {
  text-align: left;
}
.entity-page .entity-note {
  margin-block: 24px;
  color: #595959;
  font-size: 0.875rem;
}
.entity-page .stat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-block: 16px 28px;
}
.entity-page .stat-list > div {
  flex: 1 1 100px;
  padding: 12px;
  background: #fafafa;
}
.entity-page .stat-list dt {
  font-size: 0.8125rem;
  color: #595959;
}
.entity-page .stat-list dd {
  font-size: 1.375rem;
  font-weight: 700;
}
.entity-page .about-content {
  max-width: 860px;
}
.entity-page .about-content section {
  margin-block: 28px;
}
.entity-page .about-content h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.entity-page .about-content p + p {
  margin-top: 12px;
}
.entity-page .source-list dt {
  margin-top: 16px;
  font-weight: 700;
}
.entity-page .source-list dd {
  margin-top: 4px;
}
@media (max-width: 767px) {
  .entity-page .entity-workspace {
    flex-direction: column;
    gap: 28px;
  }
  .entity-page .entity-content, .entity-page .entity-simulator {
    width: 100%;
    flex-basis: auto;
  }
  .entity-page[data-page-type=player] .entity-simulator {
    order: -1;
  }
  .entity-page .entity-player-label {
    padding-left: 0;
  }
  .entity-page .header .inner {
    gap: 8px;
  }
}

/* 基本設定
===================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inner,
.main {
  width: calc(100% - 64px);
  max-width: 1440px;
  margin-inline: auto;
}
@media (max-width: 767px) {
  .inner,
  .main {
    width: calc(100% - 32px);
  }
}

/* ヘッダー・ページタイトル
===================================== */
.header {
  border-top: 4px solid #000;
  border-bottom: 1px solid #d9d9d9;
}
.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  font-size: 44px;
  font-weight: normal;
  line-height: 1;
  color: #956a2f;
}

.brand-second {
  display: block;
  font-size: 14px;
  letter-spacing: 0.24em;
  margin-top: 6px;
}

.about-link {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #595959;
  text-align: right;
  white-space: nowrap;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 0 14px;
  flex-wrap: wrap;
}
.intro h1 {
  font-size: 1.375rem;
  line-height: 1.5;
}
.intro .lead {
  margin-top: 6px;
  color: #595959;
}

.date {
  color: #595959;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #000;
  margin-bottom: 16px;
}

.tabs {
  display: flex;
  gap: 28px;
}
.tabs button {
  padding: 9px 4px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  color: #595959;
  font-weight: 700;
  white-space: nowrap;
}
.tabs button[aria-selected=true] {
  border-color: #c92c20;
  color: #000;
}

.count-label {
  font-size: 0.8125rem;
  color: #595959;
}

/* 選手・チームランキング
===================================== */
.workspace {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 16px;
}
@media (max-width: 767px) {
  .workspace {
    display: block;
  }
}

.ranking-column {
  flex: 1;
  min-width: 0;
}
@media (max-width: 767px) {
  .ranking-column {
    display: contents;
  }
}

.ranking {
  min-width: 0;
}

.filters {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.filters label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 100px;
  font-size: 0.875rem;
}

select {
  width: 100%;
  padding: 9px 24px 9px 10px;
  border: 1px solid #b7b7b7;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
}

.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}
.table-heading h2 {
  font-size: 1rem;
}
.table-heading > span {
  color: #595959;
  font-size: 0.8125rem;
}

.table-scroll {
  overflow: auto;
  max-height: 720px;
  border-top: 2px solid #000;
  border-bottom: 1px solid #d9d9d9;
  scrollbar-color: #aaa #f5f5f5;
}
.table-scroll > table {
  min-width: 686px;
  table-layout: fixed;
}
.table-scroll .rank-column {
  width: 44px;
}
.table-scroll .name-column {
  width: 180px;
}
.table-scroll .avg-column {
  width: 78px;
}
.table-scroll .ab-column {
  width: 64px;
}
.table-scroll .hits-column {
  width: 72px;
}
.table-scroll .hr-column {
  width: 76px;
}
.table-scroll .rbi-column {
  width: 72px;
}
.table-scroll thead {
  position: sticky;
  top: 0;
  z-index: 3;
}
@media (max-width: 1024px) {
  .table-scroll {
    max-height: 520px;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

thead {
  background: #eee;
}
thead th {
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}
thead th:first-child, thead th:nth-child(2) {
  text-align: left;
}
thead button {
  padding: 0;
  line-height: 1.5;
  text-align: right;
}
thead [aria-sort] {
  font-weight: 700;
}

tbody td,
tbody th {
  border-top: 1px solid #e8e8e8;
  font-size: 0.9375rem;
}
tbody td {
  padding: 13px 12px;
  text-align: right;
}
tbody th {
  padding: 0 8px;
  font-weight: 400;
  text-align: left;
}
tbody tr {
  background: #fff;
}
tbody tr:nth-child(even) {
  background: #fafafa;
}
tbody tr:hover, tbody tr:focus-within {
  background: #f0f0f0;
}
tbody tr.selected {
  background: #fff3f1;
}
tbody tr.selected .row-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rank-number {
  color: #595959;
  text-align: left;
  font-size: 0.8125rem;
}

.row-name {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}
.row-name > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.row-name small {
  display: block;
  margin-top: 3px;
  color: #595959;
  font-size: 0.8125rem;
}

.team-mark {
  width: 4px;
  height: 28px;
  flex-shrink: 0;
  background: var(--team, #999);
  font-size: 0;
}

.actual-col strong {
  font-size: 1.125rem;
  font-weight: 700;
}

#rows tr {
  cursor: pointer;
}

.table-note,
.table-foot {
  color: #595959;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.table-note {
  padding-bottom: 12px;
}

.table-foot {
  padding-top: 12px;
}

.empty {
  padding: 40px 16px;
  text-align: center;
}
.empty p {
  margin-top: 8px;
  color: #595959;
}
.empty button {
  padding: 8px 14px;
  margin-top: 16px;
  border: 1px solid #000;
}

/* 追加打数後の予測
===================================== */
.simulator {
  flex: 0 0 clamp(300px, 31.25vw, 400px);
  min-width: 0;
  padding-left: clamp(20px, 1.875vw, 24px);
  border-left: 1px solid #d9d9d9;
  scroll-margin-top: 20px;
}
@media (max-width: 767px) {
  .simulator {
    width: 100%;
    margin-inline: auto;
    padding-left: 0;
    border-left: 0;
  }
}

.selected-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.selected-name h2 {
  font-size: 1.375rem;
  line-height: 1.5;
}

.team-badge {
  padding-left: 8px;
  border-left: 3px solid var(--team, #999);
  color: #595959;
  font-size: 0.875rem;
}

.muted {
  margin-top: 6px;
  color: #595959;
  font-size: 0.8125rem;
}

.metrics {
  padding-block: 10px 12px;
}
.metrics .current {
  display: flex;
  align-items: baseline;
  gap: 0 12px;
  flex-wrap: wrap;
}
.metrics span {
  font-size: 0.875rem;
  font-weight: 700;
}
.metrics strong {
  font-size: 3rem;
  line-height: 1.25;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.metrics small {
  flex-basis: 100%;
  color: #595959;
  font-size: 0.8125rem;
}

.calculator {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid #000;
}
.calculator h3 {
  font-size: 1rem;
}

.calc-note {
  margin-top: 7px;
  color: #595959;
  font-size: 0.75rem;
  line-height: 1.7;
}

.calc-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.calc-field {
  flex: 1 1 110px;
  min-width: 0;
}
.calc-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.calc-field input, .calc-field select {
  width: 100%;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.calc-field [aria-invalid=true] {
  border-color: #c92c20;
}

.calc-innings {
  flex-basis: 170px;
}

.calc-innings-input {
  display: flex;
  align-items: center;
  gap: 5px;
}
.calc-innings-input input {
  flex: 1 1 60px;
  width: 60px;
}
.calc-innings-input select {
  flex: 1 1 80px;
  width: 80px;
}
.calc-innings-input span {
  font-size: 0.8125rem;
}

.calc-error {
  margin-top: 8px;
  color: #c92c20;
  font-size: 0.8125rem;
}

.calc-result {
  margin-top: 14px;
  padding: 12px;
  border-left: 3px solid #c92c20;
  background: #f5f5f5;
}
.calc-result > p:first-child {
  font-size: 0.8125rem;
  font-weight: 700;
}

.calc-change {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.calc-change span {
  color: #595959;
  font-size: 0.8125rem;
}
.calc-change strong {
  font-size: 2rem;
  line-height: 1.35;
}

.calc-goal {
  margin-top: 16px;
}
.calc-goal summary {
  font-weight: 700;
  padding-block: 5px;
}
.calc-goal .calc-field {
  margin-top: 12px;
}
.calc-goal input {
  max-width: 150px;
}

.goal-result {
  margin-top: 16px;
  padding: 20px 18px;
  border-radius: 8px;
  background: linear-gradient(125deg, #98271f, #c92c20);
  color: #fff;
  box-shadow: 0 4px 14px rgba(163, 41, 32, 0.1215686275);
  font-variant-numeric: tabular-nums;
}
.goal-result[data-state=achieved] {
  background: linear-gradient(125deg, #155548, #237969);
}
.goal-result[data-state=unreachable] {
  background: #6d4c20;
}
.goal-result[data-state=invalid] {
  background: #f1efed;
  color: #595959;
  box-shadow: none;
}
.goal-result .goal-status {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2705882353);
  font-size: 0.8125rem;
  font-weight: 700;
}
.goal-result .goal-lead {
  margin: 0;
  font-size: 0.875rem;
}
.goal-result .goal-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 2px 0 10px;
}
.goal-result .goal-main strong {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.goal-result .goal-main span {
  font-size: 1rem;
  font-weight: 700;
}
.goal-result .goal-detail {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.75;
}

.prediction-body {
  padding-bottom: 16px;
}

.scenario-controls {
  margin-top: 14px;
  border-block: 1px solid #d9d9d9;
}
.scenario-controls summary {
  padding-block: 12px;
  font-weight: 700;
}
.scenario-controls summary span {
  display: block;
  margin: 4px 0 0 18px;
  color: #595959;
  font-size: 0.75rem;
  font-weight: 400;
}

.controls {
  padding: 4px 0 16px;
}

.slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
}
.slider-label output {
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.slider-label output span {
  margin-left: 5px;
  font-size: 0.875rem;
  font-weight: 400;
}

input[type=range] {
  width: 100%;
  margin: 16px 0 6px;
  accent-color: #c92c20;
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: #595959;
  font-size: 0.8125rem;
}

.at-bats-note {
  margin-top: 10px;
  font-size: 0.8125rem;
}

.result {
  padding: 10px 12px;
  background: #f5f5f5;
  scroll-margin-block: 16px;
}
.result > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  flex-wrap: wrap;
}
.result p {
  font-size: 0.8125rem;
}
.result strong {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.range-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #595959;
}
.range-result b {
  font-size: 0.875rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.range-result small {
  flex-basis: 100%;
  font-size: inherit;
}

figure {
  max-width: 420px;
  margin: 12px auto 0;
}
figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
figure text {
  font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  fill: #595959;
}

.chart-grid {
  stroke: #ddd;
}

.chart-band {
  fill: #f4dcd8;
}

.chart-line {
  stroke: #c92c20;
}

.chart-guide {
  stroke: #777;
}

.chart-point {
  fill: #c92c20;
  stroke: #fff;
}

figcaption {
  display: flex;
  justify-content: center;
  gap: 2px 12px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #595959;
}
figcaption span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.line-key {
  width: 16px;
  height: 2px;
  background: #c92c20;
}

.band-key {
  width: 16px;
  height: 10px;
  background: #f4dcd8;
}

.sim-note {
  margin-block: 12px 20px;
  color: #595959;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.detail {
  padding-top: 20px;
  border-top: 1px solid #d9d9d9;
}
.detail h3 {
  font-size: 0.9375rem;
}
.detail #feature-note {
  margin-bottom: 16px;
}
.detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 4px 12px;
  flex-wrap: wrap;
  padding-block: 7px;
  font-size: 0.875rem;
}
.detail dt {
  color: #595959;
}
.detail dt small {
  font-size: 0.8125rem;
}
.detail dd {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.detail details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #d9d9d9;
}

summary {
  font-size: 0.875rem;
  cursor: pointer;
}

#history {
  overflow: auto;
  margin-top: 12px;
}
#history th,
#history td {
  padding: 8px 6px;
  font-size: 0.8125rem;
}
#history p {
  margin-top: 12px;
  color: #595959;
  font-size: 0.8125rem;
}

/* 集計方法・出典
===================================== */
.method {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-block: 32px 48px;
  border-top: 2px solid #000;
  scroll-margin-top: 24px;
}
.method > h2 {
  flex: 0 0 210px;
  font-size: 1.125rem;
}
.method h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}
.method article {
  margin-bottom: 28px;
}
.method p {
  color: #595959;
  line-height: 1.9;
}
.method p + p {
  margin-top: 8px;
}
@media (max-width: 1024px) {
  .method {
    flex-direction: column;
    gap: 24px;
  }
  .method > h2 {
    flex-basis: auto;
  }
}

.method-content {
  flex: 1;
  min-width: 0;
  max-width: 900px;
}

.validation {
  padding-block: 16px;
  border-block: 1px solid #d9d9d9;
}
.validation summary {
  font-size: 1rem;
}
.validation p {
  margin-top: 12px;
}

.data-status {
  margin-top: 28px;
}

.sources {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #595959;
}
.sources li + li {
  margin-top: 4px;
}

.footer {
  border-top: 1px solid #d9d9d9;
}
.footer .inner {
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding-block: 24px;
  font-size: 0.8125rem;
  color: #595959;
}

/* 高さが限られるPC画面でも、予測グラフまで見渡せる余白にします。
===================================== */
@media (min-width: 900px) and (max-height: 800px) {
  .header .inner {
    padding-block: 8px;
  }
  .intro {
    padding-bottom: 10px;
  }
  .toolbar {
    margin-bottom: 12px;
  }
  .metrics {
    padding-block: 4px 6px;
  }
  .result {
    padding-block: 8px;
  }
  .simulator figure {
    margin-top: 8px;
  }
}
/* スマートフォン
===================================== */
@media (max-width: 767px) {
  .header .inner {
    gap: 12px;
    padding-block: 12px;
  }
  .brand {
    gap: 8px;
    font-size: 13px;
  }
  .brand-mark {
    font-size: 34px;
  }
  .brand-second {
    font-size: 11px;
    letter-spacing: 0.2em;
    margin-top: 5px;
  }
  .about-link {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .intro {
    padding-block: 0 12px;
    gap: 8px;
  }
  .intro h1 {
    font-size: 1.25rem;
  }
  .toolbar {
    position: sticky;
    top: 0;
    z-index: 3;
    gap: 12px;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  }
  .simulator {
    display: flow-root;
  }
  .result {
    scroll-margin-top: calc(var(--tabs-height, 48px) + 16px);
  }
  .tabs {
    flex: 1;
    gap: 0;
    min-width: 0;
  }
  .tabs button {
    flex: 1;
    padding-inline: 2px;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }
  .toolbar .count-label {
    display: none;
  }
  .filters {
    gap: 8px;
    padding-bottom: 16px;
  }
  .filters label {
    min-width: 88px;
  }
  .filters select {
    padding-left: 6px;
    padding-right: 6px;
  }
  .intro .lead {
    font-size: 0.8rem;
  }
  .date,
  .count-label {
    font-size: 0.75rem;
  }
  .table-scroll {
    max-height: 420px;
  }
  .table-scroll > table {
    min-width: 620px;
  }
  .table-scroll .rank-column {
    width: 40px;
  }
  .table-scroll .name-column {
    width: 148px;
  }
  .table-scroll .avg-column {
    width: 72px;
  }
  .table-scroll .ab-column {
    width: 60px;
  }
  .table-scroll .hits-column {
    width: 64px;
  }
  .table-scroll .hr-column {
    width: 72px;
  }
  .table-scroll .rbi-column {
    width: 64px;
  }
  .table-scroll thead th {
    padding: 10px 2px;
    font-size: 0.75rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .table-scroll thead button {
    max-width: 100%;
    white-space: normal;
  }
  .table-scroll tbody td {
    padding: 11px 2px;
    font-size: 0.8125rem;
  }
  .table-scroll tbody th {
    padding-inline: 2px;
  }
  .table-scroll th:first-child,
  .table-scroll td:first-child {
    padding-left: 8px;
  }
  .table-scroll th:last-child,
  .table-scroll td:last-child {
    padding-right: 8px;
  }
  .table-scroll .actual-col strong {
    font-size: 1rem;
  }
  .ranking.is-team .table-scroll {
    max-height: none;
    overflow: auto;
  }
  .row-name {
    gap: 5px;
    font-size: clamp(0.8125rem, 3.6vw, 0.875rem);
  }
  .row-name small {
    font-size: 0.6875rem;
  }
  .team-mark {
    width: 3px;
  }
  .scenario-controls summary span {
    margin-left: 18px;
  }
  #history {
    overflow: visible;
  }
  #history table {
    table-layout: fixed;
    white-space: normal;
  }
  #history th,
  #history td {
    padding: 8px 2px;
    font-size: 0.75rem;
  }
  #history thead th {
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  #history thead th:nth-child(1) {
    width: 34%;
  }
  #history thead th:nth-child(2) {
    width: 22%;
  }
  #history thead th:nth-child(3) {
    width: 22%;
  }
  #history thead th:nth-child(4) {
    width: 22%;
  }
  #history tbody th,
  #history tbody td {
    white-space: nowrap;
  }
  .method {
    margin: 48px -16px 0;
    padding: 28px 16px 40px;
    border-top: 4px solid #000;
    background: #f5f5f5;
  }
  .method > h2 {
    padding-left: 12px;
    border-left: 4px solid #c92c20;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* 球団ページでも長い選手名を数値の列へはみ出させません。 */
.entity-page .entity-table {
  overflow-x: auto;
}
.entity-page .entity-table table {
  table-layout: fixed;
  min-width: 600px;
}
.entity-page .entity-table th:first-child {
  width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.entity-page .entity-table td, .entity-page .entity-table th {
  padding-inline: 8px;
}
.entity-page .entity-table thead th {
  white-space: normal;
}

@media (max-width: 767px) {
  .entity-page .entity-table th:first-child {
    width: 160px;
  }
  .entity-page .entity-table td, .entity-page .entity-table th {
    padding-inline: 6px;
    font-size: 0.8125rem;
  }
}
@media (min-width: 768px) and (max-width: 899px) {
  .toolbar .count-label {
    display: none;
  }
  .tabs {
    gap: 16px;
  }
}
/* 横スクロール中も、どの選手の成績か追えるように名前を固定します。 */
.ranking .table-scroll thead th:nth-child(2),
.ranking .table-scroll tbody th,
.entity-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: inherit;
  box-shadow: 1px 0 0 #e8e8e8;
}

.ranking .table-scroll thead th:nth-child(2),
.entity-table thead th:first-child {
  background: #eee;
}

.scroll-hint {
  margin: 10px 0 8px;
  color: #595959;
  font-size: 0.75rem;
  text-align: right;
}
.scroll-hint span {
  margin-right: 4px;
  font-size: 1rem;
}

.current-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.current-stats > div {
  flex: 1 1 72px;
  padding: 8px 12px;
  background: #fafafa;
}
.current-stats dt {
  font-size: 0.75rem;
  color: #595959;
}
.current-stats dd {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.trend-card {
  margin-top: 22px;
  padding: 16px 14px 12px;
  border: 1px solid #eedbd8;
  border-radius: 10px;
  background: linear-gradient(150deg, #fff8f6, #fff 65%);
}

.trend-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.trend-heading h3 {
  margin: 0;
  font-size: 0.9375rem;
}

.trend-tag {
  padding: 3px 7px;
  border-radius: 4px;
  background: #f7e7e3;
  color: #96372e;
  font-size: 0.625rem;
  font-weight: 700;
}

.trend-scope {
  margin-top: 5px;
  color: #595959;
  font-size: 0.6875rem;
}

.trend-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.trend-readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.trend-readout span {
  color: #595959;
  font-size: 0.6875rem;
}
.trend-readout strong {
  color: #a5271e;
  font-size: 1.625rem;
  line-height: 1.25;
}

.trend-ranges {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 6px;
  background: #f3eeec;
}
.trend-ranges button {
  padding: 6px 7px;
  border: 0;
  border-radius: 4px;
  color: #666;
  background: transparent;
  font-size: 0.625rem;
  cursor: pointer;
}
.trend-ranges button[aria-pressed=true] {
  color: #a5271e;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.0705882353);
  font-weight: 700;
}

.trend-card #trend-plot {
  margin: 12px 0 0;
  padding: 0;
}

#trend-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
}
#trend-chart text {
  fill: #68635f;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.trend-grid {
  stroke: #e8e0dc;
  stroke-dasharray: 3 4;
}

.trend-line {
  stroke: #c92c20;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-guide {
  stroke: #b36e66;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.trend-point {
  fill: #c92c20;
  stroke: #fff;
  stroke-width: 2.5;
}

#trend-slider {
  display: block;
  width: 100%;
  height: 18px;
  margin: 4px 0;
  accent-color: #c92c20;
  cursor: ew-resize;
}

.trend-card #trend-help {
  display: block;
  margin: 4px 0 0;
  padding: 0;
  color: #595959;
  font-size: 0.625rem;
  line-height: 1.6;
  text-align: left;
}

.trend-empty {
  margin-top: 14px;
  color: #595959;
  font-size: 0.8125rem;
}

.trend-ranges button:focus-visible, #trend-slider:focus-visible {
  outline: 2px solid #a5271e;
  outline-offset: 3px;
}

.season-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  padding-top: 24px;
  font-size: 0.875rem;
}
.season-navigation > span {
  font-weight: 700;
  margin-right: 0.25rem;
}
.season-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid #d7dde4;
  border-radius: 0.4rem;
  background: #fff;
  color: #26364a;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.season-navigation a:hover {
  border-color: #26364a;
  background: #f3f5f7;
}
.season-navigation a[aria-current=page] {
  border-color: #26364a;
  background: #26364a;
  color: #fff;
}
.season-navigation a:focus-visible {
  outline: 2px solid #427dba;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .season-navigation {
    padding-top: 20px;
  }
  .season-navigation > span {
    flex-basis: 100%;
    margin-right: 0;
  }
}

.season-notice {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #526173;
}

.ranking-conditions {
  margin: 0 0 12px;
  color: #595959;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.analysis-links {
  margin-block: 8px 12px;
  font-size: 0.8125rem;
}

/*# sourceMappingURL=style.css.map */
