/* 当せん番号チェッカー（checker.html）— site-design.css の色・角丸トークンを使う */

.checker-page {
  --checker-hit: #c62828;
  --checker-hit-soft: #ffebee;
  --checker-win-bg: #fff8e1;
  --checker-win-border: #f2b600;
}

.checker-lead {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--color-text-muted, #5c6370);
  margin: 0 0 1.2rem;
}

.checker-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.checker-points li {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand, #1a5fb4);
  background: var(--color-brand-soft, #e8f1fc);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

.checker-app {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #d8e2ef);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-card, 0 4px 20px rgba(26, 91, 180, 0.1));
  padding: 1.6rem;
  margin: 0 0 2rem;
}

.checker-tabs {
  display: flex;
  flex-wrap: wrap; /* 5種類すべてを一目で見せる（横スクロールだとナンバーズ3が画面外に隠れる） */
  gap: 0.6rem;
  margin: 0 0 1.6rem;
}

.checker-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 1.4rem;
  border: 1px solid var(--color-border, #d8e2ef);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text, #1a1a2e);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.checker-tab[aria-selected='true'] {
  background: var(--color-brand, #1a5fb4);
  border-color: var(--color-brand, #1a5fb4);
  color: #fff;
}

.checker-step {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.checker-count {
  font-size: 1.3rem;
  color: var(--color-text-muted, #5c6370);
  margin: 0 0 0.8rem;
}

.checker-count.is-complete {
  color: var(--color-brand, #1a5fb4);
  font-weight: 700;
}

.checker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}

.checker-ball {
  aspect-ratio: 1;
  min-height: 40px;
  border: 1.5px solid var(--color-border, #d8e2ef);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text, #1a1a2e);
  font-family: 'Roboto', var(--font-sans, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}

.checker-ball[aria-pressed='true'] {
  background: var(--color-brand, #1a5fb4);
  border-color: var(--color-brand, #1a5fb4);
  color: #fff;
}

.checker-ball:disabled {
  opacity: 0.35;
  cursor: default;
}

.checker-bulk {
  margin: 0 0 0.8rem;
}

.checker-bulk-label {
  display: block;
  font-size: 1.25rem;
  color: var(--color-text-muted, #5c6370);
  margin: 0 0 0.4rem;
}

.checker-bulk-row {
  display: flex;
  gap: 0.6rem;
}

.checker-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--color-border, #d8e2ef);
  border-radius: var(--radius-sm, 8px);
  padding: 0 1rem;
  font: inherit;
  font-size: 1.6rem; /* iOS で入力時に拡大されない 16px */
  background: #fff;
  color: var(--color-text, #1a1a2e);
}

.checker-input--digits {
  width: 100%;
  max-width: 24rem;
  font-family: 'Roboto', var(--font-sans, sans-serif);
  font-size: 2.4rem;
  letter-spacing: 0.4em;
  text-align: center;
  margin: 0 0 0.6rem;
}

.checker-sub-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 1.4rem;
  border: 1px solid var(--color-brand, #1a5fb4);
  border-radius: var(--radius-sm, 8px);
  background: var(--color-brand-soft, #e8f1fc);
  color: var(--color-brand, #1a5fb4);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.checker-sub-btn--ghost {
  background: transparent;
  border-color: var(--color-border, #d8e2ef);
  color: var(--color-text-muted, #5c6370);
}

.checker-actions-sub {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1.2rem;
}

.checker-hint {
  font-size: 1.25rem;
  color: var(--color-text-muted, #5c6370);
  margin: 0 0 1.2rem;
}

.checker-error {
  color: var(--color-accent, #c62828);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.4rem 0 0.8rem;
}

.checker-error:empty {
  display: none;
}

.checker-submit {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-md, 12px);
  background: var(--color-accent, #c62828);
  color: #fff;
  font: inherit;
  font-size: 1.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #8e1b1b;
}

.checker-submit:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8e1b1b;
}

.checker-tab:focus-visible,
.checker-ball:focus-visible,
.checker-sub-btn:focus-visible,
.checker-submit:focus-visible,
.checker-input:focus-visible {
  outline: 3px solid #f2b600;
  outline-offset: 2px;
}

.checker-results:empty {
  display: none;
}

.checker-results,
.checker-odds {
  margin: 0 0 2rem;
}

.checker-results-ttl,
.checker-section-ttl {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-brand, #1a5fb4);
}

.checker-loading {
  font-size: 1.4rem;
  color: var(--color-text-muted, #5c6370);
}

.checker-summary {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--color-brand-soft, #e8f1fc);
  border-radius: var(--radius-sm, 8px);
  padding: 1rem 1.2rem;
  margin: 0 0 1.2rem;
}

.checker-summary.is-win {
  background: var(--checker-win-bg);
  border: 1px solid var(--checker-win-border);
}

.checker-draws {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.checker-draw {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #d8e2ef);
  border-radius: var(--radius-md, 12px);
  padding: 1.2rem;
}

.checker-draw.is-win {
  background: var(--checker-win-bg);
  border: 2px solid var(--checker-win-border);
}

.checker-draw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin: 0 0 0.8rem;
}

.checker-draw-issue {
  font-size: 1.5rem;
  font-weight: 700;
}

.checker-draw-date {
  font-size: 1.25rem;
  color: var(--color-text-muted, #5c6370);
}

.checker-draw-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
}

.checker-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checker-ball-view {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d4a72c;
  font-family: 'Roboto', var(--font-sans, sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text, #1a1a2e);
}

.checker-ball-view.is-hit {
  background: var(--checker-hit);
  border-color: var(--checker-hit);
  color: #fff;
}

.checker-bonus {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checker-bonus-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-muted, #5c6370);
}

.checker-balls--bonus .checker-ball-view {
  border-style: dashed;
}

.checker-balls--bonus .checker-ball-view.is-hit {
  border-style: solid;
}

.checker-badge {
  margin: 0.9rem 0 0;
  font-size: 1.35rem;
  color: var(--color-text-muted, #5c6370);
}

.checker-badge.is-win {
  color: var(--checker-hit);
}

.checker-badge.is-win strong {
  font-size: 1.6rem;
}

.checker-note {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-muted, #5c6370);
  margin: 0.8rem 0 0;
}

.checker-table-wrap {
  overflow-x: auto;
}

.checker-odds-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface, #fff);
  font-size: 1.35rem;
}

.checker-odds-table caption {
  text-align: left;
  font-size: 1.25rem;
  color: var(--color-text-muted, #5c6370);
  padding: 0 0 0.6rem;
}

.checker-odds-table th,
.checker-odds-table td {
  border: 1px solid var(--color-border, #d8e2ef);
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

.checker-odds-table thead th {
  background: var(--color-brand-soft, #e8f1fc);
  white-space: nowrap;
}

.checker-odds-table tbody th {
  white-space: nowrap;
}

.checker-odds-num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.checker-cta {
  text-align: center;
  background: var(--color-brand-soft, #e8f1fc);
  border-radius: var(--radius-lg, 16px);
  padding: 1.6rem;
  margin: 0 0 2rem;
}

.checker-cta p {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.checker-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 2.4rem;
  border-radius: var(--radius-md, 12px);
  background: var(--color-brand, #1a5fb4);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.checker-faq h2 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.checker-faq h3 {
  font-size: 1.5rem;
  margin: 1.4rem 0 0.4rem;
}

.checker-faq p {
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .checker-app {
    padding: 2.4rem;
  }

  .checker-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    max-width: 52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checker-submit:active {
    transform: none;
  }
}
