/* Preserve the original layout and artwork; style only the new status and controls. */
.resultStatus { font-size: 12px; line-height: 18px; color: #555; margin: 8px 0; }
.historyResult .resultStatus { text-align: center; }
.historyInput[type="date"] { box-sizing: border-box; font: 13px Arial, sans-serif; }
.history table td { padding: 4px 0; }
.paginator { display: flow-root; }
#nextOpeningPeriodOverDate { min-height: 64px; }
#imgPlay a { display: block; width: 100%; height: 100%; }
#jp { overflow-wrap: anywhere; }
#newsDetail img { height: auto; }
.numbersInfo { position: relative; }
.numbersInfo .resultStatus { position: absolute; bottom: 3px; left: 8px; right: 8px; margin: 0; font-size: 11px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stagesTitle, .stagesResult { display: grid; grid-template-columns: 82px minmax(0, 1fr); column-gap: 4px; padding-left: 6px; padding-right: 6px; }
.stagesTitle > span { float: none; }
.stagesTitle > span:last-child { text-align: center; }
.stagesResult { box-sizing: border-box; height: 23px; align-items: center; }
.stagesResult .stageIssue { font-size: 12px; white-space: nowrap; }
.stageNumbers { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.history table .ball1 { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 28px; padding: 0; line-height: 1; background-position: center; vertical-align: middle; }
.historyResult .ball3 { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 51px; padding: 0 2px 7px 0; line-height: 1; vertical-align: middle; }
/* Navigation hover, previously inline onMouseOver/onMouseOut handlers (removed for CSP). */
.headNavigationButton:hover { background-image: url(../images/topButtonSelect.jpg); }
.headNavigationButton2:hover { background-image: url(../images/topButtonSelect2.jpg); }
.headNavigationButton:hover a, .headNavigationButton2:hover a { color: #0055b5; font-weight: bold; padding-top: 9px; }
.searchButton { border: 0; padding: 0; margin: 0; background: none; cursor: pointer; vertical-align: middle; line-height: 0; }
.notFound { padding: 20px 15px 30px; font-size: 14px; line-height: 24px; }

/* Small screens: stack the fixed-width desktop panels. Desktop (>= 1006px) is unchanged. */
@media (max-width: 1005px) {
  .head, .headContent, .headLogo, .headNavigation { height: auto; }
  .headContent, .body, .footContent { width: auto; max-width: 1006px; box-sizing: border-box; padding-left: 8px; padding-right: 8px; }
  .headLogo, .headNavigation { float: none; width: auto; text-align: center; }
  .headNavigationTop { display: none; }
  .headNavigation > .clear { display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 6px; }
  #banner { height: auto; margin-top: 8px; }
  .banner { height: auto; aspect-ratio: 1000 / 267; background-size: cover; }
  #imgPlay { position: static; height: auto; padding-top: 6px; }
  .numbers, .stages, .related, .qas, .links,
  .contentLeft, .contentRight, .contentLeft2, .contentRight2, .contentLeft3, .contentRight3,
  .newsListTopAd, .newsListTopRight { float: none; width: auto; margin-right: 0; }
  .numbers, .stages, .related, .qas { margin-bottom: 10px; }
  .numbersInfo, .stagesInfo, .relatedInfo, .qasInfo, .linksInfo, .newsDetailList, .numbersInfoBall { height: auto; }
  .numbersInfo { padding-bottom: 22px; }
  .stagesInfo { padding-bottom: 4px; }
  .relatedList li { height: auto; margin-bottom: 8px; }
  .content { margin-left: 8px; margin-right: 8px; }
  .faq, .about, .newsList, .newsDetail, .history { width: auto; }
  .faq { box-sizing: border-box; }
  .body img, #newsDetail img, #newsListTopAd img { max-width: 100%; height: auto; }
  .newsDetailList li { height: auto; overflow: hidden; }
  .footContent { line-height: 20px; }
  .scrollInfo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 480px) {
  #historyResult .ball3, .count1 { zoom: 0.8; }
  .history table td, .history table th { font-size: 12px; }
  .history table .ball1 { width: 22px; height: 22px; font-size: 12px; background-size: contain; }
}
@media (max-width: 360px) {
  #historyResult .ball3 { zoom: 0.72; }
}
