:root {
  --ink: #07172e;
  --blue: #064b91;
  --sky: #12a5df;
  --yellow: #ffd21f;
  --red: #e62f20;
  --green: #07804a;
  --cream: #fff5cf;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #020817;
  color: white;
  font-family: "Arial Black", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 900;
  letter-spacing: .025em;
}

button, a {
  font-family: inherit;
  font-weight: 900;
}

.console {
  min-height: 100vh;
  padding: 18px;
  background: radial-gradient(circle at 50% 10%, #12325d 0, #020817 62%);
  position: relative;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(0deg, #0000 0 3px, #0002 4px);
  mix-blend-mode: multiply;
}

.gameFrame {
  width: min(1280px, 100%);
  min-height: calc(100vh - 36px);
  margin: auto;
  border: 7px solid #9cb1c6;
  outline: 5px solid #020817;
  background: var(--ink);
  box-shadow: 0 0 0 8px #314a64, 0 25px 70px #000;
  position: relative;
  overflow: hidden;
  font-size: 19px;
}

.gameFrame button, .gameFrame a {
  font-family: inherit;
  font-weight: 900;
}

.gameFrame p, .gameFrame li, .gameFrame dd, .gameFrame dt {
  font-weight: 800;
}

.gameFrame small {
  font-size: 13px;
  font-weight: 900;
}

.gameHeader {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 16px;
  background: #061426;
  border-bottom: 5px solid var(--yellow);
  position: relative;
  z-index: 20;
}

.gameHeader > a {
  color: white;
  background: var(--red);
  border: 3px solid white;
  padding: 9px 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 3px 3px var(--yellow);
}

.miniLogo {
  border: 0;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.miniLogo b {
  font-size: 26px;
  background: var(--yellow);
  color: var(--ink);
  padding: 5px;
  border: 3px solid white;
  box-shadow: 3px 3px var(--red);
}

.miniLogo span {
  font-size: 11px;
  font-weight: 900;
  color: var(--yellow);
  text-align: left;
  font-family: Arial, "Noto Sans JP", sans-serif;
}

.score {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 26px) 58px repeat(4, 26px);
  border: 3px solid #7190ad;
  background: #020812;
  text-align: center;
  font-size: 12px;
}

.score > * {
  padding: 4px;
  border-right: 1px solid #4e6379;
}

.score b {
  background: #263b50;
}

.score strong {
  color: var(--yellow);
}

.score em {
  color: var(--red);
  font-style: normal;
  font-weight: bold;
}

.gameFooter {
  height: 34px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020812;
  color: #8da8bf;
  font-size: 11px;
  border-top: 3px solid #334a61;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.titleScreen, .menuScreen, .selectScreen, .detailScreen, .modeScreen {
  min-height: calc(100vh - 252px);
  position: relative;
}

.titleScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(#061b3bbb,#061b3bbb), url('../assets/ref/1.webp') center/cover;
}

.titleScreen:after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -210px;
  height: 360px;
  border-radius: 50% 50% 0 0;
  background: repeating-linear-gradient(90deg, #087548 0 70px, #0a8b50 70px 140px);
  border-top: 7px solid white;
}

.stadiumLights {
  position: absolute;
  top: 25px;
  color: #fff8a4;
  font-size: 27px;
  letter-spacing: 22px;
  text-shadow: 0 0 18px white;
}

.titleLogo {
  position: relative;
  z-index: 2;
  text-shadow: 5px 5px #000;
}

.titleLogo small {
  font-weight: 900;
  letter-spacing: 9px;
  font-size: 13px;
  font-family: Arial, "Noto Sans JP", sans-serif;
}

.titleLogo h1 {
  font-size: clamp(45px, 8vw, 94px);
  line-height: .78;
  margin: 20px 0;
  color: white;
  font-style: italic;
  -webkit-text-stroke: 3px #06172e;
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: .02em;
}

.titleLogo h1 span {
  display: inline-block;
  color: var(--yellow);
  background: var(--red);
  padding: 6px 10px;
  border: 5px solid white;
  transform: rotate(-4deg);
  -webkit-text-stroke: 2px #06172e;
}

.titleLogo p {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 900;
  border: 4px solid var(--ink);
  box-shadow: 5px 5px var(--red);
  font-size: 17px;
  text-shadow: 2px 2px 0 #000;
}

.pixelPlayers {
  display: flex;
  align-items: end;
  gap: 40px;
  font-size: 72px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(5px 5px #000);
}

.pixelPlayers b {
  font-size: 95px;
}

.start {
  position: relative;
  z-index: 3;
  background: var(--red);
  color: white;
  border: 5px solid white;
  outline: 4px solid var(--ink);
  box-shadow: 8px 8px var(--yellow);
  padding: 14px 36px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  animation: pulse 1s steps(2) infinite;
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: .08em;
}

.start i {
  color: var(--yellow);
  font-style: normal;
}

.press {
  z-index: 3;
  font-size: 11px;
  animation: blink 1s steps(2) infinite;
}

.copyright {
  position: absolute;
  bottom: 12px;
  z-index: 3;
  font-size: 11px;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.menuScreen {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  background: linear-gradient(#063d70aa,#063d70aa), url('../assets/ref/2.webp') center/cover;
}

.field {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, #087548 0 90px, #0a8b50 90px 180px);
  border-right: 6px solid white;
}

.field:before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: #b8793b;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 6px solid white;
}

.diamond {
  position: absolute;
  width: 270px;
  height: 270px;
  background: #1b9859;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 6px solid white;
  display: grid;
  place-items: center;
}

.diamond span {
  transform: rotate(-45deg);
  font-size: 45px;
  font-weight: bold;
  color: var(--yellow);
  text-shadow: 4px 4px var(--red);
}

.pitcher {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--yellow);
  border: 8px double white;
  outline: 4px solid var(--ink);
  box-shadow: 7px 7px var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.pitcher b {
  font: 900 28px "Arial Black", sans-serif;
}

.pitcher small {
  font: 900 8px Arial, sans-serif;
  margin-top: 7px;
}

.field .base {
  position: absolute;
  width: 105px;
  height: 105px;
  z-index: 6;
  background: white;
  color: var(--ink);
  border: 7px solid var(--yellow);
  outline: 4px solid var(--ink);
  box-shadow: 7px 7px var(--red);
  transform: rotate(45deg);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  text-decoration: none;
}

.field .baseLabel {
  width: 88px;
  min-height: 48px;
  transform: rotate(-45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.field .base i, .field .base b {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-style: normal;
}

.field .base i {
  font-size: 16px;
  line-height: 1.15;
  color: var(--red);
}

.field .base b {
  margin-top: 4px;
  font: 900 10px/1 Arial, sans-serif;
  letter-spacing: 0;
}

.field .base:hover {
  background: var(--yellow);
  border-color: white;
  transform: rotate(45deg) scale(1.08);
}

.baseHome { left: calc(50% - 52px); bottom: 6%; }
.baseFirst { right: 9%; top: calc(52% - 52px); }
.baseSecond { left: calc(50% - 52px); top: 5%; }
.baseThird { left: 9%; top: calc(52% - 52px); }

.menuPanel {
  align-self: center;
  margin: 30px;
  background: #061426;
  border: 6px double white;
  box-shadow: 9px 9px var(--yellow);
  padding: 16px;
}

.menuPanel > p {
  margin: 0 0 13px;
  background: var(--red);
  padding: 9px;
  text-align: center;
  font-weight: 900;
  font-size: 19px;
  text-shadow: 2px 2px 0 #000;
}

.menuPanel button, .menuPanel > a {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 2px 6px;
  width: 100%;
  text-align: left;
  padding: 11px;
  border: 0;
  border-bottom: 2px solid #2a4560;
  background: transparent;
  color: white;
  cursor: pointer;
  text-decoration: none;
}

.menuPanel button i, .menuPanel > a i {
  grid-row: 1/3;
  color: var(--yellow);
  font-style: normal;
}

.menuPanel button b, .menuPanel > a b {
  font-size: 19px;
  font-weight: 900;
}

.menuPanel button small, .menuPanel > a small {
  grid-column: 2;
  color: #c5d7e7;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.menuPanel button.active {
  background: var(--blue);
  color: var(--yellow);
  transform: translateX(5px);
}

.menuBadge {
  display: inline-block;
  min-width: 76px;
  margin-right: 10px;
  padding: 5px 7px;
  background: var(--red);
  color: white;
  border: 2px solid white;
  font: 900 11px Arial, sans-serif;
  text-align: center;
  box-shadow: 2px 2px var(--yellow);
}

.menuPanel button.active .menuBadge {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

.help {
  text-align: center;
  color: #8fa9bf;
  font-size: 12px;
  margin-top: 13px;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.selectScreen, .detailScreen, .modeScreen {
  padding-bottom: 55px;
  background: linear-gradient(#0b2f58ee,#0b2f58ee), url('../assets/ref/1.webp') center/cover;
}

.screenTitle {
  height: auto;
  position: static;
  background: var(--blue);
  border: 0;
  border-bottom: 6px solid var(--yellow);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  color: white;
}

.screenTitle > button {
  display: none;
}

.screenTitle h1 {
  font-size: 29px;
  margin: 0;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #000;
  font-weight: 900;
}

.screenTitle p {
  font-size: 13px;
  margin: 3px 0 0;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.screenTitle > span {
  margin-left: auto;
  background: var(--red);
  padding: 8px;
  border: 3px solid white;
  font-weight: bold;
  font-size: 16px;
}

.roster {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.roster button, .roster > a {
  min-height: 205px;
  padding: 8px 8px 14px;
  background: #fff4c7;
  color: var(--ink);
  border: 5px solid white;
  outline: 3px solid var(--ink);
  box-shadow: 5px 5px #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.roster button:hover, .roster > a:hover {
  background: var(--yellow);
  transform: translateY(-4px);
}

.roster .number, .roster > a .number {
  position: absolute;
  left: 6px;
  top: 5px;
  background: var(--red);
  color: white;
  padding: 4px;
  font-weight: bold;
}

.roster i {
  font-size: 42px;
  font-style: normal;
}

.roster b, .roster > a b {
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
  text-shadow: none;
}

.roster strong, .roster > a strong {
  font-size: 18px;
  margin-top: 5px;
  font-weight: 900;
  line-height: 1.2;
}

.roster em, .roster > a em {
  font-style: normal;
  background: var(--blue);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  margin-top: auto;
}

.servicePhoto {
  width: 100%;
  height: 105px;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--ink);
  margin-bottom: 8px;
}

.servicePhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: .2s;
}

.roster button:hover .servicePhoto img {
  transform: scale(1.06);
}

.servicePhoto i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid white;
  padding: 4px 6px;
  font: 900 12px Arial, sans-serif;
  font-style: normal;
  box-shadow: 2px 2px var(--red);
}

.back {
  position: absolute;
  left: 18px;
  bottom: 15px;
  background: #061426;
  color: white;
  border: 3px solid white;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 15px;
}

.detailBoard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 22px;
}

.detailBoard figure {
  margin: 0;
  background: #020812;
  border: 5px solid white;
  padding: 10px;
  text-align: center;
}

.detailBoard figure img {
  max-width: 100%;
  max-height: 620px;
}

.detailBoard figcaption {
  font-size: 11px;
  color: #8fa9bf;
}

.detailBoard article {
  background: #fff4c7;
  color: var(--ink);
  border: 6px double var(--ink);
  padding: 18px;
  box-shadow: 8px 8px var(--yellow);
}

.playerCard {
  display: flex;
  gap: 14px;
  border-bottom: 4px solid var(--red);
  padding-bottom: 13px;
}

.playerCard > span {
  min-width: 92px;
  height: 72px;
  padding: 8px;
  background: var(--yellow);
  color: var(--ink);
  border: 5px double var(--ink);
  display: grid;
  place-items: center;
  font: 900 13px Arial, sans-serif;
  box-shadow: 4px 4px var(--red);
}

.playerCard small {
  font-size: 12px;
  color: var(--blue);
}

.playerCard h2 {
  margin: 3px 0;
  font-size: 30px;
  font-family: "Arial Black", "Yu Gothic", sans-serif;
  font-weight: 900;
}

.playerCard p, .carModes p, .teamData article > p, .contactBox p {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.9;
}

.stats {
  margin: 20px 0;
}

.stats > div {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
}

.stats > div b, .stats > div em {
  font-weight: 900;
}

.stats > div > span {
  height: 13px;
  background: #16283b;
  border: 2px solid var(--ink);
}

.stats > div > span i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--red) 0 9px, var(--yellow) 9px 12px);
}

.stats em {
  font-style: normal;
  font-weight: bold;
}

.command {
  background: var(--ink);
  color: white;
  padding: 12px;
}

.command p {
  font-size: 14px;
  color: var(--yellow);
}

.command a, .command button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #456078;
  background: transparent;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.command a:hover, .command button:hover {
  background: var(--blue);
  color: var(--yellow);
}

.carModes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 45px max(5vw, 50px);
}

.carModes article {
  background: #fff4c7;
  color: var(--ink);
  border: 6px double var(--ink);
  box-shadow: 9px 9px var(--yellow);
  padding: 25px;
  text-align: center;
  padding-top: 14px;
}

.carModes article > div {
  font-size: 80px;
}

.carModes small {
  color: var(--red);
  font-weight: bold;
}

.carModes h2 {
  font-size: 32px;
  margin: 8px;
  font-weight: 900;
  text-shadow: 2px 2px var(--yellow);
}

.carModes a {
  display: block;
  background: var(--red);
  color: white;
  border: 3px solid var(--ink);
  padding: 11px;
  text-decoration: none;
  font-weight: bold;
}

.carPhoto {
  height: 180px !important;
  overflow: hidden;
  border: 4px solid var(--ink);
  margin-bottom: 15px;
  background: var(--ink);
}

.carPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.teamData {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 35px;
  padding: 45px max(5vw, 70px);
}

.manager {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  border: 15px double white;
  outline: 6px solid var(--ink);
  box-shadow: 10px 10px var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: inherit;
}

.manager span {
  font: 900 55px Impact, "Arial Black", sans-serif;
  letter-spacing: .04em;
  line-height: .85;
}

.manager b {
  color: var(--red);
  font: 900 44px Impact, sans-serif;
  text-shadow: 2px 2px white;
}

.teamData article {
  background: #fff4c7;
  color: var(--ink);
  border: 6px double var(--ink);
  padding: 25px;
}

.teamData h2 {
  font-size: 34px;
}

.teamData dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.teamData dl div {
  border: 3px solid var(--ink);
  text-align: center;
  padding: 10px;
}

.teamData dt {
  font-size: 10px;
}

.teamData dd {
  font-size: 25px;
  font-weight: bold;
  color: var(--red);
  margin: 5px;
}

.contactBox {
  width: min(650px, 90%);
  margin: 45px auto;
  background: #fff4c7;
  color: var(--ink);
  border: 7px double var(--ink);
  box-shadow: 10px 10px var(--yellow);
  padding: 25px;
  text-align: center;
}

.operator {
  width: 130px;
  height: 100px;
  margin: 0 auto 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 7px double var(--ink);
  box-shadow: 6px 6px var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.operator b {
  font: 900 29px Impact, "Arial Black", sans-serif;
}

.operator span {
  font: 900 18px Arial, sans-serif;
  color: var(--red);
}

.contactBox > a {
  display: flex;
  flex-direction: column;
  color: var(--red);
  font-size: 45px;
  font-weight: bold;
  text-decoration: none;
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: .03em;
}

.contactBox > a small {
  font-size: 10px;
}

.contactBox > b {
  display: block;
  font-size: 15px;
}

.contactBox > button {
  background: var(--blue);
  color: white;
  border: 3px solid var(--ink);
  padding: 11px 18px;
  margin-top: 18px;
  cursor: pointer;
}

@keyframes blink {
  50% { opacity: .25; }
}

@keyframes pulse {
  50% {
    transform: translateY(3px);
    box-shadow: 5px 5px var(--yellow);
  }
}

.mascotGuide {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  width: 100%;
  height: auto !important;
  min-height: 110px;
  padding: 7px 22px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(90deg, #07172f, #0b3e72, #07172f);
  border-bottom: 5px solid var(--yellow);
  filter: none !important;
  transform: none !important;
  transform-origin: center !important;
  pointer-events: auto;
}

.mascotCrop {
  width: 92px !important;
  height: 96px !important;
  flex: 0 0 92px;
  position: relative;
  overflow: visible !important;
}

.mascotCrop img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain;
  filter: drop-shadow(4px 5px #0008);
}

.mascotGuide .speech {
  width: min(620px, calc(100% - 120px)) !important;
  min-height: 65px;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 18px;
  background: #fff9dd;
  color: var(--ink);
  border: 5px solid white;
  border-radius: 4px;
  outline: 3px solid var(--ink);
  box-shadow: 5px 5px var(--red);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  font-size: 17px !important;
  line-height: 1.45;
  overflow: visible !important;
  gap: 4px;
}

.mascotGuide .speech:before {
  content: "";
  position: absolute;
  left: -21px;
  top: 26px;
  border: 10px solid transparent;
  border-right-color: var(--ink);
}

.mascotGuide .speech:after {
  display: none;
}

.mascotGuide .speech small,
.mascotGuide .speech b {
  display: block;
  width: 100%;
  margin: 0;
  position: static;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.mascotGuide .speech small {
  font: 900 10px Arial, sans-serif;
  color: var(--red);
  letter-spacing: .12em;
  line-height: 1.2 !important;
}

.mascotGuide .speech b {
  font-size: 17px !important;
  font-weight: 900;
  line-height: 1.5 !important;
}

.mascot-contact .speech {
  background: var(--yellow);
}

.quickNav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 8px 12px;
  background: #020812;
  border-bottom: 5px solid #415d78;
  position: relative;
  z-index: 24;
}

.quickNav button {
  min-height: 56px;
  padding: 6px 5px;
  background: #0b315d;
  color: white;
  border: 3px solid #708aa3;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: inset 0 -4px #06172f;
}

.quickNav button span {
  display: block;
  color: var(--yellow);
  font: 900 10px Arial, sans-serif;
  letter-spacing: .06em;
}

.quickNav button:hover, .quickNav button.current {
  background: var(--red);
  border-color: white;
  color: white;
  box-shadow: inset 0 -4px #86190f, 3px 3px var(--yellow);
}

.quickNav button.current:before {
  content: "▶ ";
  color: var(--yellow);
}

.quickNav a {
  min-height: 48px;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a2745;
  color: white;
  border: 0;
  border-right: 1px solid #31506b;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.quickNav a span {
  color: var(--yellow);
  font-size: 9px;
}

.quickNav a.current {
  background: var(--red);
}

.quickNav + .menuScreen, .quickNav + .selectScreen, .quickNav + .detailScreen, .quickNav + .modeScreen {
  min-height: calc(100vh - 316px);
}

.fieldBench {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 8;
  width: 190px;
  min-height: 92px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: end;
  gap: 5px;
  background: linear-gradient(#0b315d 0 25%, #f4efe2 25% 100%);
  color: var(--ink);
  border: 5px solid white;
  outline: 3px solid var(--ink);
  box-shadow: 6px 6px var(--yellow);
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
}

.fieldBench:before {
  content: "BENCH";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  color: var(--yellow);
  font: 900 11px Arial, sans-serif;
  letter-spacing: .16em;
}

.fieldBench img {
  width: 62px;
  height: 70px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(3px 3px #0005);
}

.fieldBench span {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fieldBench small {
  font: 900 9px Arial, sans-serif;
  color: #0b315d;
}

.fieldBench b {
  font-size: 15px;
  line-height: 1.15;
  color: var(--red);
}

.fieldBench i {
  margin-top: 4px;
  padding: 3px 6px;
  background: #07542e;
  color: white;
  font: 900 9px Arial, sans-serif;
  font-style: normal;
}

.fieldBench:hover, .fieldBench.active {
  transform: translateY(-4px);
  background: linear-gradient(var(--red) 0 25%, var(--yellow) 25% 100%);
  box-shadow: 8px 10px white;
}

.fieldBench.active:after {
  content: "▶";
  position: absolute;
  right: 5px;
  top: 3px;
  color: white;
  font-size: 11px;
}

.zoomTrigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #020812;
  cursor: zoom-in;
  overflow: hidden;
}

.zoomTrigger > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 7px 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid white;
  box-shadow: 3px 3px var(--red);
  font-size: 12px;
  font-weight: 900;
}

.zoomTrigger:hover img {
  filter: brightness(.84);
  transform: scale(1.02);
}

.detailBoard .zoomTrigger img {
  display: block;
  max-width: 100%;
  max-height: 620px;
  margin: auto;
  transition: .2s;
}

.carPhoto.zoomTrigger {
  display: block;
  width: 100%;
  border: 4px solid var(--ink);
}

.imageZoom {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000e;
  padding: 70px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: auto;
}

.imageZoom img {
  display: block;
  max-width: min(100%, 1100px);
  max-height: none;
  border: 7px solid white;
  box-shadow: 10px 10px var(--yellow);
  background: white;
}

.zoomClose {
  position: fixed;
  right: 22px;
  top: 18px;
  z-index: 181;
  background: var(--red);
  color: white;
  border: 4px solid white;
  box-shadow: 4px 4px var(--yellow);
  padding: 10px 17px;
  font-size: 16px;
  cursor: pointer;
}

.imageZoom > p {
  color: white;
  background: var(--ink);
  padding: 8px 14px;
  font-size: 13px;
}

.teamRecruitBanner {
  width: min(820px, 90%);
  min-height: 86px;
  margin: 8px auto 35px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, #b22618, #75130d);
  color: white;
  border: 5px solid white;
  outline: 4px solid var(--ink);
  box-shadow: 8px 8px var(--yellow);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.teamRecruitBanner span {
  padding: 8px 10px;
  background: var(--yellow);
  color: var(--ink);
  font: 900 13px Arial, sans-serif;
}

.teamRecruitBanner b {
  font-size: 23px;
  text-shadow: 2px 2px #000;
}

.teamRecruitBanner small {
  font-size: 13px;
  color: var(--yellow);
}

.teamRecruitBanner:hover {
  transform: translateY(-3px);
  background: #07542e;
}

.recruitScreen {
  padding-bottom: 42px;
  background: radial-gradient(circle at 50% 0, #155080 0, #072644 38%, #03101f 100%);
}

.recruitHero {
  width: min(920px, 92%);
  margin: 28px auto 30px;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #f7f1e5;
  color: var(--ink);
  border: 7px double white;
  outline: 4px solid var(--ink);
  box-shadow: 10px 10px var(--yellow);
  overflow: hidden;
}

.recruitMascot {
  min-height: 330px;
  padding: 15px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: repeating-linear-gradient(0deg, #07325c 0 12px, #092847 12px 24px);
  overflow: hidden;
}

.recruitMascot:after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -55px;
  height: 160px;
  background: #247738;
  border-radius: 50%;
  border: 5px solid white;
}

.recruitMascot img {
  width: 230px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(7px 7px #0008);
}

.recruitMascot > span {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 7px 9px;
  background: var(--yellow);
  border: 3px solid white;
  color: var(--ink);
  font: 900 13px Arial, sans-serif;
}

.recruitMascot > b {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 12px;
  padding: 7px;
  background: var(--red);
  color: white;
  border: 3px solid white;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-4deg);
}

.recruitHero article {
  padding: 30px 32px;
}

.recruitTag {
  display: inline-block;
  margin: 0 0 12px !important;
  padding: 7px 12px;
  background: var(--red);
  color: white;
  border: 3px solid var(--ink);
  font-size: 14px !important;
}

.recruitHero h2 {
  margin: 0 0 18px;
  color: #06396c;
  font-size: 40px;
  line-height: 1.15;
  text-shadow: 3px 3px var(--yellow);
}

.recruitHero article > p {
  font-size: 16px;
  line-height: 1.8;
}

.recruitTwoColumn {
  width: min(920px, 92%);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.recruitPanel {
  padding: 0 22px 22px;
  background: #f7f1e5;
  color: var(--ink);
  border: 6px double white;
  outline: 4px solid var(--ink);
  box-shadow: 8px 8px var(--red);
}

.recruitPanel header {
  margin: 0 -22px 18px;
  padding: 12px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #07325c;
  color: white;
  border-bottom: 4px solid var(--yellow);
}

.recruitPanel header > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid white;
  font: 900 20px Arial, sans-serif;
}

.recruitPanel small {
  font: 900 10px Arial, sans-serif;
  color: var(--yellow);
}

.recruitPanel h2 {
  margin: 0;
  font-size: 22px;
}

.recruitPanel p {
  font-size: 15px;
  line-height: 1.7;
}

.recruitPanel ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.recruitPanel li {
  margin: 8px 0;
  padding: 9px 10px 9px 38px;
  position: relative;
  background: #fff;
  border: 2px solid #c8bfae;
  font-size: 15px;
}

.recruitPanel li:before {
  content: "★";
  position: absolute;
  left: 11px;
  color: var(--red);
}

.recruitRequirements {
  width: min(920px, 92%);
  margin: 0 auto 30px;
  background: #f7f1e5;
  color: var(--ink);
  border: 7px double white;
  outline: 4px solid var(--ink);
  box-shadow: 10px 10px var(--yellow);
}

.recruitRequirements > header {
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #07325c;
  color: white;
  border-bottom: 5px solid var(--yellow);
}

.recruitRequirements > header span {
  padding: 6px 9px;
  background: var(--red);
  font: 900 12px Arial, sans-serif;
}

.recruitRequirements h2 {
  margin: 0;
  font-size: 26px;
}

.recruitRequirements dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.recruitRequirements dl > div {
  min-height: 55px;
  display: grid;
  grid-template-columns: 135px 1fr;
  border-bottom: 2px solid #b9b09f;
}

.recruitRequirements dl > div:nth-child(odd) {
  border-right: 2px solid #b9b09f;
}

.recruitRequirements dt, .recruitRequirements dd {
  margin: 0;
  padding: 13px 12px;
  font-size: 14px;
  line-height: 1.5;
}

.recruitRequirements dt {
  display: flex;
  align-items: center;
  background: #e6dcc8;
  color: #07325c;
}

.recruitRequirements dd {
  display: flex;
  align-items: center;
  background: #fffdf7;
}

.recruitApply {
  width: min(780px, 88%);
  margin: 0 auto 24px;
  padding: 28px 30px;
  background: linear-gradient(135deg, #a92117, #6f100c);
  color: white;
  border: 7px double white;
  outline: 4px solid var(--ink);
  box-shadow: 10px 10px var(--yellow);
  text-align: center;
}

.recruitApply > small {
  display: inline-block;
  padding: 5px 10px;
  background: var(--yellow);
  color: var(--ink);
  font: 900 11px Arial, sans-serif;
}

.recruitApply h2 {
  margin: 12px 0;
  font-size: 30px;
  line-height: 1.25;
  text-shadow: 3px 3px #000;
}

.recruitApply > p {
  font-size: 15px;
  line-height: 1.75;
}

.recruitApply > div {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.recruitApply a, .recruitApply button {
  min-height: 70px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border: 4px solid white;
  outline: 2px solid var(--ink);
  box-shadow: 4px 4px var(--yellow);
  text-decoration: none;
  font-size: 19px;
  cursor: pointer;
}

.recruitApply a {
  background: #07542e;
}

.recruitApply button {
  background: #0b3e72;
}

.recruitApply a span {
  font-size: 12px;
}

.recruitApply a:hover, .recruitApply button:hover {
  background: var(--yellow);
  color: var(--ink);
}

.recruitApply > div > a:last-child {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.companyCard {
  align-items: stretch;
}

.companyCard .manager {
  min-height: 330px;
  background: repeating-linear-gradient(0deg, #08294b 0 18px, #0b3968 18px 36px);
  border: 6px double white;
  outline: 4px solid var(--ink);
  box-shadow: 8px 8px var(--red);
}

.companyCard article {
  flex: 1;
}

.inningLabel {
  display: inline-block !important;
  margin: 0 0 10px !important;
  padding: 5px 9px;
  background: var(--red);
  color: white;
  border: 2px solid white;
  font: 900 11px Arial, sans-serif !important;
  letter-spacing: .1em;
}

.companyProfile {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-top: 18px !important;
  border: 4px solid var(--ink);
  background: #fffdf0;
}

.companyProfile > div {
  display: grid !important;
  grid-template-columns: 130px 1fr !important;
  align-items: stretch;
  border-bottom: 2px solid var(--ink);
  min-height: 50px;
}

.companyProfile > div:last-child {
  border-bottom: 0;
}

.companyProfile dt, .companyProfile dd {
  margin: 0 !important;
  padding: 10px 12px !important;
  text-align: left !important;
  font-size: 14px !important;
  line-height: 1.55;
}

.companyProfile dt {
  display: flex;
  align-items: center;
  background: var(--yellow);
  color: var(--ink);
  border-right: 2px solid var(--ink);
}

.companyProfile dd {
  background: #fffdf0;
  color: var(--ink);
}

.companyProfile a {
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
}

.socialDugout {
  width: min(980px, 92%);
  margin: 28px auto 18px;
  padding: 14px;
  background: #06172e;
  border: 6px double white;
  outline: 4px solid var(--ink);
  box-shadow: 9px 9px var(--yellow);
}

.socialDugout > header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 4px 13px;
  color: white;
}

.socialDugout > header > span {
  padding: 7px 9px;
  background: var(--red);
  border: 2px solid white;
  font: 900 11px Arial, sans-serif;
  animation: livePulse 1.5s steps(2, end) infinite;
}

.socialDugout h2 {
  margin: 0;
  color: var(--yellow);
  font: 900 25px Impact, "Arial Black", sans-serif;
  letter-spacing: .08em;
}

.socialDugout header p {
  margin: 2px 0 0;
  font-size: 13px;
}

.socialLineup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.socialLineup > a, .socialLineup > span {
  min-height: 92px;
  padding: 12px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  color: white;
  border: 4px solid white;
  text-decoration: none;
  box-shadow: inset 0 -6px #0004;
  transition: .15s;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}

.socialLineup > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px var(--yellow);
}

.socialLineup > * > strong {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--ink);
  border: 3px solid var(--ink);
  font: 900 15px Arial, sans-serif;
}

.socialLineup b, .socialLineup small {
  display: block;
}

.socialLineup b {
  font-size: 18px;
}

.socialLineup small {
  margin-top: 3px;
  font-size: 11px;
}

.socialLineup i {
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.instagram {
  background: linear-gradient(135deg, #6e2b9f, #d52d72, #ef7b2d);
}

.line {
  background: #06b900;
}

.socialLineup .pending {
  filter: saturate(.35);
  opacity: .72;
}

.socialDugout.compact {
  margin-top: 25px;
}

.socialDugout.compact header p {
  display: none;
}

@keyframes livePulse {
  50% {
    background: #fff;
    color: var(--red);
  }
}

.infoVisual {
  min-height: 330px;
  border: 6px double white !important;
  outline: 4px solid var(--ink);
  box-shadow: 8px 8px var(--red);
  background: #06172e !important;
}

.infoVisual img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: top;
}

.infoVisual > b, .infoVisual > small {
  position: absolute;
  left: 12px;
  background: #06172ee8;
  color: white;
  border: 2px solid white;
  padding: 5px 8px;
  z-index: 2;
}

.infoVisual > b {
  top: 12px;
  color: var(--yellow);
  font: 900 18px "Arial Black", sans-serif;
}

.infoVisual > small {
  top: 51px;
  font: 900 9px Arial, sans-serif;
  letter-spacing: .1em;
}

.contactVisual {
  height: 280px;
  margin: 0 0 22px;
  border: 5px solid var(--ink);
  outline: 3px solid white;
  box-shadow: 6px 6px var(--red);
}

.contactVisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.carSelectScreen {
  background: linear-gradient(#082b51dd, #06172ef0), repeating-linear-gradient(90deg, #174d30 0 36px, #12502d 36px 72px);
}

.carIntro {
  width: min(760px, 90%);
  margin: 28px auto 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #06172e;
  color: white;
  border: 4px solid white;
  box-shadow: 6px 6px var(--yellow);
}

.carIntro b {
  flex: 0 0 auto;
  padding: 5px 8px;
  background: var(--red);
  color: white;
  font: 900 12px Arial, sans-serif;
}

.carIntro p {
  margin: 0;
  font-size: 14px;
}

.carSelectScreen .carModes {
  padding-top: 28px;
}

.carSelectScreen .carModes article {
  position: relative;
  overflow: hidden;
  padding: 16px 22px 24px;
}

.newCarMode {
  box-shadow: 9px 9px var(--red) !important;
}

.usedCarMode {
  box-shadow: 9px 9px #2473bd !important;
}

.mascotCarVisual {
  height: 230px;
  position: relative;
  display: block;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  background: repeating-linear-gradient(0deg, #0c335e 0 18px, #124473 18px 36px);
  border: 5px solid var(--ink);
}

.newCarMode .mascotCarVisual {
  background: repeating-linear-gradient(0deg, #8f1d17 0 18px, #bd2d22 18px 36px);
}

.mascotCarVisual:after {
  display: none;
}

.mascotCarVisual img {
  position: relative;
  z-index: 2;
  width: 145px;
  height: 205px;
  object-fit: contain;
  filter: drop-shadow(5px 6px #0008);
}

.mascotCarVisual span, .mascotCarVisual b {
  position: absolute;
  z-index: 3;
  top: 10px;
  padding: 5px 8px;
  border: 3px solid white;
}

.mascotCarVisual > span {
  top: 11px;
  left: 12px;
  padding: 8px 13px;
  border-width: 4px;
  font: 900 16px/1 "Arial Black", Arial, sans-serif;
  letter-spacing: .06em;
  box-shadow: 4px 4px #0008;
  background: var(--yellow);
  color: var(--ink);
}

.usedCarMode .mascotCarVisual > span {
  background: #2473bd;
  color: white;
}

.mascotCarVisual b {
  right: 10px;
  background: var(--red);
  color: white;
  font: 900 20px Impact, sans-serif;
}

.usedCarMode .mascotCarVisual b {
  background: #2473bd;
}

.carSelectScreen .carModes h2 {
  margin: 6px 0 8px;
  font-size: 34px;
}

.carSelectScreen .carModes p {
  min-height: 112px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
}

.carSelectScreen .carModes a {
  transition: .15s;
}

.carSelectScreen .carModes a:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px var(--yellow);
}

.mascotCarVisual .carMascot {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: 158px;
  height: 218px;
  margin: 0;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(5px 6px #0008);
}

.newCarMode .mascotCarVisual .makerLogoBoard,
.usedCarMode .mascotCarVisual .makerLogoBoard {
  position: absolute !important;
  top: 52px;
  left: 20px;
  width: calc(100% - 205px);
  max-width: 300px;
  max-height: 138px;
  padding: 8px;
  object-fit: contain;
  background: #fffdf0;
  border: 4px double var(--ink);
  box-shadow: 4px 4px var(--yellow);
  transform: none !important;
  z-index: 2;
}

.carSelectScreen .carModes .carConsultButton {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px;
  background: var(--red);
  color: white;
  border: 3px solid var(--ink);
  font: 900 16px/1.3 inherit;
  font-size: 17px;
  cursor: pointer;
  transition: .15s;
  touch-action: manipulation;
  text-decoration: none;
}

.carSelectScreen .carModes .carConsultButton:hover,
.carSelectScreen .carModes .carConsultButton:focus-visible {
  transform: translateY(-2px);
  box-shadow: 4px 4px var(--yellow);
  outline: 3px solid white;
  outline-offset: 2px;
}

.titleGameHeader {
  height: 54px;
  padding: 5px 0 5px 14px;
  justify-content: space-between;
  border-bottom: 3px solid #416889;
  background: #03070b;
}

.titleGameHeader > b {
  font: 900 18px "Arial Black", "MS Gothic", sans-serif;
  letter-spacing: .04em;
  color: white;
}

.titleGameHeader > a {
  margin-left: auto;
  margin-right: 14px;
  padding: 4px 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 18px;
  color: white;
}

.titleGameHeader > button {
  width: 48px;
  height: 46px;
  padding: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #020508;
  color: white;
  border: 0;
  border-left: 2px solid #4f6477;
  cursor: pointer;
}

.titleGameHeader > button i {
  font-size: 24px;
  line-height: .8;
  font-style: normal;
}

.titleGameHeader > button small {
  font: 900 9px Arial, sans-serif;
}

.arcadeTitle {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 12px 10px;
  padding-bottom: 4px !important;
  justify-content: flex-start;
  background: #061d3b !important;
}

.arcadeTitle:after {
  display: none !important;
}

.topReferenceStage {
  width: min(900px, 100%);
  aspect-ratio: 3/2;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #08427a;
  box-shadow: 0 10px 35px #0009;
}

.topReferenceCrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.topReferenceCrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.topHotspot {
  position: absolute;
  z-index: 4;
  padding: 0;
  border: 0;
  background: #0000;
  cursor: pointer;
}

.topHotspot:hover {
  background: #fff2;
  box-shadow: inset 0 0 0 4px var(--yellow);
}

.topHotspot:focus-visible {
  outline: 5px solid var(--yellow);
  outline-offset: -5px;
  background: #fff2;
}

.rescueHotspot { left: 4.2%; top: 62.5%; width: 18.5%; height: 15.5%; }
.supportHotspot { left: 24.3%; top: 62.5%; width: 18.3%; height: 15.5%; }
.careHotspot { left: 66.7%; top: 62.5%; width: 27%; height: 15.5%; }
.carHotspot { left: 31%; top: 76%; width: 38%; height: 10.5%; }
.playHotspot { left: 22.5%; top: 81%; width: 55%; height: 14%; }

.arcadeTitle .press {
  margin: 8px 0 0;
  font-size: 12px;
  color: #d6e9ff;
}

.serviceMenuOverlay, .serviceCardOverlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000e;
  overflow: auto;
}

.serviceMenuCabinet {
  width: min(500px, 96vw);
  padding: 16px 18px 18px;
  position: relative;
  background: repeating-linear-gradient(0deg, #06160f 0 18px, #092218 18px 36px);
  border: 7px double white;
  outline: 5px solid #020705;
  box-shadow: 11px 11px var(--yellow);
  text-align: center;
}

.serviceMenuClose {
  position: absolute;
  z-index: 4;
  right: -14px;
  top: -18px;
  padding: 8px 12px;
  background: var(--red);
  color: white;
  border: 3px solid white;
  box-shadow: 3px 3px var(--yellow);
  font-size: 13px;
  cursor: pointer;
}

.serviceMenuImage {
  width: min(409px, 100%);
  aspect-ratio: 409/421;
  margin: auto;
  position: relative;
}

.serviceMenuImage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.serviceMenuRows {
  position: absolute;
  left: 3.5%;
  right: 3.5%;
  top: 14.2%;
  bottom: 9.2%;
  display: grid;
  grid-template-rows: repeat(12, 1fr);
  gap: 0;
}

.serviceMenuRows button {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #0000;
  cursor: pointer;
}

.serviceMenuRows button span {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 22px;
  display: none;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid white;
  font: 900 11px Arial, sans-serif;
}

.serviceMenuRows button:hover, .serviceMenuRows button:focus-visible {
  background: #ffd62b32;
  box-shadow: inset 0 0 0 3px var(--yellow);
}

.serviceMenuRows button:hover span, .serviceMenuRows button:focus-visible span {
  display: grid;
}

.serviceMenuRows a {
  position: absolute;
  left: 0;
  width: 100%;
  height: 8.33%;
  border: 0;
  background: #fff0;
  cursor: pointer;
}

.serviceMenuRows a:nth-child(1) { top: 0; }
.serviceMenuRows a:nth-child(2) { top: 8.33%; }
.serviceMenuRows a:nth-child(3) { top: 16.66%; }
.serviceMenuRows a:nth-child(4) { top: 24.99%; }
.serviceMenuRows a:nth-child(5) { top: 33.32%; }
.serviceMenuRows a:nth-child(6) { top: 41.65%; }
.serviceMenuRows a:nth-child(7) { top: 49.98%; }
.serviceMenuRows a:nth-child(8) { top: 58.31%; }
.serviceMenuRows a:nth-child(9) { top: 66.64%; }
.serviceMenuRows a:nth-child(10) { top: 74.97%; }
.serviceMenuRows a:nth-child(11) { top: 83.3%; }
.serviceMenuRows a:nth-child(12) { top: 91.63%; }

.serviceMenuRows a:hover {
  background: #ffd21f33;
}

.serviceMenuRows a span {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: #07172ecc;
  color: white;
  border: 2px solid var(--yellow);
  font-size: 10px;
}

.serviceMenuCabinet > p {
  margin: 13px 0 9px;
  color: white;
  font-size: 14px;
  letter-spacing: .04em;
}

.toStadiumMenu {
  padding: 8px 14px;
  background: #0a4f2f;
  color: white;
  border: 3px solid white;
  box-shadow: 3px 3px var(--yellow);
  font-size: 13px;
  cursor: pointer;
  display: block;
  text-align: center;
  text-decoration: none;
}

.serviceCardOverlay {
  z-index: 230;
  background: #00132bf0;
}

.servicePopupCard {
  width: min(390px, 94vw);
  padding: 17px 18px 18px;
  position: relative;
  background: #f6f0df;
  color: var(--ink);
  border: 7px double white;
  outline: 5px solid var(--ink);
  box-shadow: 12px 12px var(--yellow);
  text-align: center;
  animation: cardPop .22s steps(3, end);
}

.servicePopupCard:before {
  content: "MSB SERVICE PLAYER";
  display: block;
  margin: -17px -18px 12px;
  padding: 9px 45px 9px 12px;
  background: #06396c;
  color: white;
  text-align: left;
  font: 900 14px "Arial Black", sans-serif;
  letter-spacing: .08em;
}

.servicePopupCard > small {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font: 900 11px Arial, sans-serif;
  letter-spacing: .12em;
}

.servicePopupCard > img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 330px;
  margin: 0 auto 13px;
  border: 4px solid var(--ink);
  background: white;
  image-rendering: auto;
}

.servicePopupCard > h2 {
  margin: 0;
  color: #06396c;
  font-size: 27px;
  text-shadow: 2px 2px var(--yellow);
}

.servicePopupCard > p {
  margin: 4px 0 14px;
  font-size: 18px;
}

.popupClose {
  position: absolute;
  right: 8px;
  top: 7px;
  z-index: 2;
  width: 34px;
  height: 32px;
  background: var(--red);
  color: white;
  border: 3px solid white;
  font-size: 17px;
  cursor: pointer;
}

.popupDetail, .popupReselect {
  width: 100%;
  min-height: 48px;
  cursor: pointer;
}

.popupDetail {
  background: #07542e;
  color: white;
  border: 4px solid white;
  outline: 3px solid var(--ink);
  box-shadow: 5px 5px var(--yellow);
  font-size: 18px;
}

.popupReselect {
  margin-top: 12px;
  background: #ded8c6;
  color: var(--ink);
  border: 3px solid var(--ink);
  font-size: 13px;
}

.popupDetail:hover, .toStadiumMenu:hover {
  background: var(--red);
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: scale(.72) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.referenceCompanyStrip {
  width: min(980px, 92%);
  margin: 27px auto 32px;
  position: relative;
  background: #06172e;
  border: 6px double white;
  outline: 4px solid var(--ink);
  box-shadow: 9px 9px var(--yellow);
  overflow: hidden;
}

.referenceCompanyStrip.company {
  aspect-ratio: 5.3/1;
}

.referenceCompanyStrip.contact {
  width: min(650px, 92%);
  aspect-ratio: 3.18/1;
  box-shadow: 9px 9px var(--red);
}

.referenceCrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #06172e;
}

.referenceCrop img {
  position: absolute;
  top: 0;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

.referenceCompanyStrip.company .referenceCrop img {
  left: 0;
  width: 160%;
  height: auto;
}

.referenceCompanyStrip.contact .referenceCrop img {
  right: 0;
  width: 266.7%;
  height: auto;
}

.referenceStripCaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 48px;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: #06172ef0;
  color: white;
  border-top: 3px solid var(--yellow);
}

.referenceStripCaption span {
  padding: 5px 8px;
  background: var(--red);
  color: white;
  font: 900 11px Arial, sans-serif;
  letter-spacing: .09em;
}

.referenceStripCaption b {
  font-size: 15px;
  text-align: left;
}

.referenceStripCaption button {
  padding: 7px 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid white;
  box-shadow: 2px 2px var(--red);
  font-size: 12px;
  cursor: pointer;
}

.referenceStripCaption button:hover {
  background: white;
}

.referenceCompanyStrip.contact .referenceStripCaption {
  background: #06172ef7;
}

.referenceCompanyStrip.contact .referenceStripCaption b:after {
  content: "  TEL 0229-58-0072";
  margin-left: 10px;
  color: var(--yellow);
  white-space: nowrap;
}

/* お問い合わせ・各種スタック */
.contactImageStack {
  width: min(569px, 94%);
  margin: 28px auto 22px;
  display: grid;
  gap: 22px;
}

.contactImagePanel {
  position: relative;
  overflow: hidden;
  background: #f4efe2;
  border: 6px double white;
  outline: 4px solid var(--ink);
  box-shadow: 9px 9px var(--yellow);
}

.contactImagePanel > img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.gameSetPanel {
  width: min(569px, 100%);
  justify-self: center;
}

.aboutPanel {
  width: min(529px, 100%);
  justify-self: center;
}

.gameSetCrop {
  aspect-ratio: 569/126;
  overflow: hidden;
  background: #052343;
}

.gameSetCrop img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.imageActionLineup {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 9px;
  background: #06172e;
  position: relative;
  z-index: 5;
}

.imageActionLineup > a, .imageActionLineup > span {
  min-height: 68px;
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border: 3px solid white;
  text-decoration: none;
  text-align: center;
  box-shadow: inset 0 -5px #0005;
  transition: .15s;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}

.imageActionLineup strong, .imageActionLineup small {
  display: block;
}

.imageActionLineup strong {
  font-size: 14px;
  line-height: 1.2;
}

.imageActionLineup small {
  margin-top: 4px;
  font-size: 10px;
}

.imageActionLineup a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px var(--yellow);
}

.imageActionLineup a:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 2px;
}

.imageActionLineup .actionLine {
  opacity: 1;
}

.actionPhone { background: #ad1c16; }
.actionEmail { background: #9a6510; }
.actionInstagram { background: linear-gradient(135deg, #6e2b9f, #d52d72, #ef7b2d); }
.actionLine { background: #06a900; opacity: .7; }
.actionMap { background: #174f96; }

.shopPanel {
  width: min(569px, 100%);
  justify-self: center;
  min-height: 260px;
  background: #eee8da;
}

.shopPanel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: brightness(.35) saturate(.6);
}

.correctShopData {
  position: relative;
  z-index: 2;
  min-height: 260px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  gap: 18px;
  color: white;
  background: linear-gradient(90deg, #06172ef8 0 70%, #06172ecc);
}

.correctShopData small {
  display: inline-block;
  padding: 5px 9px;
  background: #0a3b6c;
  border: 2px solid white;
  font-size: 12px;
}

.correctShopData h2 {
  margin: 9px 0 5px;
  color: #06396c;
  font: 900 27px "Arial Black", sans-serif;
}

.correctShopData p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.5;
}

.correctShopData b {
  display: block;
  margin-top: 9px;
  color: var(--yellow);
  font-size: 14px;
}

.correctShopData > a {
  min-height: 105px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #174f96;
  color: white;
  border: 4px solid white;
  box-shadow: 5px 5px var(--yellow);
  text-decoration: none;
  font-size: 15px;
}

.correctShopData > a span {
  font-size: 35px;
}

.correctShopData > a:hover {
  background: var(--red);
}

.contactServiceSelect {
  display: block;
  width: min(500px, 86%);
  min-height: 54px;
  margin: 20px auto 40px;
  background: #07542e;
  color: white;
  border: 4px solid white;
  outline: 3px solid var(--ink);
  box-shadow: 6px 6px var(--yellow);
  font-size: 17px;
  cursor: pointer;
  position: relative;
  z-index: 5;
  touch-action: manipulation;
  text-decoration: none;
  text-align: center;
  padding: 12px;
}

.contactServiceSelect:hover {
  background: var(--red);
}

.titleConsole, .titleFrame {
  min-height: 0;
}

.mobileGameSetCopy {
  display: none;
}

.companyOverviewStack {
  width: min(620px, 94%);
  margin: 27px auto 34px;
  display: grid;
  gap: 20px;
}

.companyOverviewImage {
  width: min(529px, 100%);
  margin: auto;
  overflow: hidden;
  background: #f4efe2;
  border: 6px double white;
  outline: 4px solid var(--ink);
  box-shadow: 9px 9px var(--yellow);
}

.companyOverviewImage img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.companyFeatureGrid {
  display: none;
}

.companyShopPanel {
  overflow: hidden;
  background: #f4efe2;
  color: var(--ink);
  border: 6px double white;
  outline: 4px solid var(--ink);
  box-shadow: 9px 9px var(--red);
}

.companyShopPanel > header {
  padding: 8px;
  background: linear-gradient(#0d4779, #06172e);
  color: white;
  text-align: center;
  font-size: 18px;
}

.companyShopPanel > div {
  padding: 20px;
}

.companyShopPanel h2 {
  margin: 0 0 9px;
  color: #06396c;
  font: 900 28px "Arial Black", sans-serif;
}

.companyShopPanel p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.6;
}

.companyShopPanel .companyPhone {
  color: var(--red);
  font-weight: 900;
}

.companyShopPanel a {
  display: block;
  margin-top: 14px;
  padding: 11px;
  background: #174f96;
  color: white;
  border: 3px solid white;
  outline: 2px solid var(--ink);
  box-shadow: 4px 4px var(--yellow);
  text-align: center;
  text-decoration: none;
  font-size: 15px;
}

.usedCarConsultButton {
  background: #145ca0 !important;
}

.usedCarsOverlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000e;
  overflow: auto;
}

.usedCarsCabinet {
  position: relative;
  width: min(900px, 96vw);
  max-height: calc(100svh - 36px);
  padding: 22px;
  background: linear-gradient(#071b35, #0c3157 52%, #07182c);
  border: 6px double #fff7df;
  box-shadow: 0 0 0 5px #0b0b0b, 10px 10px 0 #f7bc16;
  overflow: auto;
}

.usedCarsClose {
  position: sticky;
  z-index: 3;
  top: 0;
  float: right;
  padding: 8px 12px;
  background: #a91912;
  color: white;
  border: 3px solid white;
  box-shadow: 3px 3px 0 #f7bc16;
  font: 900 14px/1 "Arial Black", Arial, sans-serif;
  cursor: pointer;
}

.usedCarsHeader {
  clear: both;
  margin: 2px auto 20px;
  text-align: center;
  color: white;
  text-shadow: 3px 3px #000;
}

.usedCarsHeader small {
  display: inline-block;
  color: #f7bc16;
  font: 900 13px/1.2 "Arial Black", Arial, sans-serif;
  letter-spacing: .12em;
}

.usedCarsHeader h2 {
  margin: 7px 0 5px;
  color: white;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
}

.usedCarsHeader p {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.usedCarsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.usedCarCard {
  display: block;
  width: 100%;
  padding: 0;
  background: #050a14;
  border: 5px solid #fff7df;
  box-shadow: 5px 5px 0 #d89f12;
  cursor: zoom-in;
  transition: transform .15s, filter .15s;
}

.usedCarCard:hover, .usedCarCard:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.06);
  outline: 4px solid #e42018;
  outline-offset: 3px;
}

.usedCarCard img {
  display: block;
  width: 100%;
  height: auto;
}

.usedCarsBack {
  display: block;
  width: min(430px, 100%);
  margin: 22px auto 2px;
  padding: 12px 16px;
  background: #087332;
  color: white;
  border: 4px solid #fff7df;
  box-shadow: 4px 4px 0 #f7bc16;
  font: 900 17px/1.3 inherit;
  cursor: pointer;
}

.usedCarsBack:hover, .usedCarsBack:focus-visible {
  filter: brightness(1.15);
  outline: 3px solid white;
  outline-offset: 2px;
}

.staticModal[hidden] {
  display: none !important;
}

body.modalOpen {
  overflow: hidden;
}


@media (min-width: 851px) {
  .fieldBench small {
    display: none;
  }

  .fieldBench span {
    padding-top: 12px;
  }

  .fieldBench b {
    margin-top: 4px;
  }
}

@media (max-width: 900px) {
  .hotlinks {
    position: static;
    justify-content: center;
    margin-top: 20px;
  }

  .referenceBoard {
    padding: 35px 18px 65px;
  }

  .referenceBoard > a {
    right: 30px;
    bottom: 22px;
    font-size: 13px;
  }
}

@media (max-width: 850px) {
  .console {
    padding: 0;
  }

  .gameFrame {
    min-height: 100vh;
    border: 0;
    outline: 0;
  }

  .score {
    display: none;
  }

  .gameHeader {
    height: 62px;
  }

  .gameHeader > a {
    margin-left: auto;
    font-size: 11px;
  }

  .titleScreen, .menuScreen, .selectScreen, .detailScreen, .modeScreen {
    min-height: calc(100vh - 172px);
  }

  .menuScreen {
    grid-template-columns: 1fr;
  }

  .field {
    min-height: 300px;
    border: 0;
    border-bottom: 5px solid white;
  }

  .menuPanel {
    margin: 18px;
  }

  .roster {
    grid-template-columns: repeat(3, 1fr);
  }

  .detailBoard {
    grid-template-columns: 1fr;
  }

  .carModes, .teamData {
    grid-template-columns: 1fr;
  }

  .manager {
    width: 230px;
    margin: auto;
  }

  .gameFooter {
    display: none;
  }
  .mascotGuide {
    height: 110px;
    padding: 7px 12px;
  }

  .mascotGuide .speech b {
    font-size: 15px;
  }

  .screenTitle h1 {
    font-size: 24px;
  }

  .quickNav {
    grid-template-columns: repeat(3, 1fr);
    padding: 6px;
  }

  .quickNav button {
    min-height: 50px;
    font-size: 11px;
  }

  .quickNav + .menuScreen, .quickNav + .selectScreen, .quickNav + .detailScreen, .quickNav + .modeScreen {
    min-height: auto;
  }

  .field .base {
    width: 82px;
    height: 82px;
  }

  .field .baseLabel {
    width: 70px;
    min-height: 42px;
  }

  .baseHome { left: calc(50% - 41px); bottom: 5%; }
  .baseFirst { right: 5%; top: calc(52% - 41px); }
  .baseSecond { left: calc(50% - 41px); top: 4%; }
  .baseThird { left: 5%; top: calc(52% - 41px); }
  .field .base i { font-size: 14px; }
  .field .base b { font-size: 9px; }
  .recruitHero {
    grid-template-columns: 220px 1fr;
  }

  .recruitHero h2 {
    font-size: 32px;
  }

  .recruitRequirements dl {
    grid-template-columns: 1fr;
  }

  .recruitRequirements dl > div:nth-child(odd) {
    border-right: 0;
  }

  .fieldBench {
    left: 12px;
    bottom: 12px;
    width: 165px;
    min-height: 76px;
    grid-template-columns: 48px 1fr;
    padding: 4px;
  }

  .fieldBench img {
    width: 52px;
    height: 57px;
  }

  .fieldBench b {
    font-size: 13px;
  }

  .fieldBench small {
    font-size: 8px;
  }
}

@media (max-width: 760px) {
  .quickNav a {
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  .companyCard {
    display: block !important;
  }

  .companyCard .manager {
    min-height: 155px;
    margin-bottom: 18px;
  }

  .companyProfile > div {
    grid-template-columns: 100px 1fr !important;
  }

  .companyProfile dt, .companyProfile dd {
    font-size: 12px !important;
    padding: 8px !important;
  }

  .socialLineup {
    grid-template-columns: 1fr;
  }

  .socialLineup > a, .socialLineup > span {
    grid-template-columns: 48px 1fr;
    min-height: 86px;
  }

  .socialLineup > * > strong {
    width: 44px;
    height: 44px;
    font-size: 12px;
  }

  .socialLineup i {
    grid-column: 2;
    font-size: 10px;
  }

  .socialDugout {
    width: 92%;
    padding: 9px;
    box-shadow: 5px 5px var(--yellow);
  }

  .socialDugout h2 {
    font-size: 21px;
  }

  .infoVisual {
    min-height: 250px;
    margin-bottom: 22px;
  }

  .infoVisual img {
    min-height: 250px;
  }

  .contactVisual {
    height: 210px;
  }

  .carIntro {
    display: block;
  }

  .carIntro b {
    display: inline-block;
    margin-bottom: 7px;
  }

  .mascotCarVisual {
    height: 200px;
  }

  .mascotCarVisual img {
    height: 180px;
  }

  .carSelectScreen .carModes p {
    min-height: auto;
  }

  .referenceCompanyStrip.company {
    aspect-ratio: 2.25/1;
  }

  .referenceCompanyStrip.company .referenceCrop img {
    width: 265%;
    height: auto;
  }

  .referenceCompanyStrip.contact {
    aspect-ratio: 2.05/1;
  }

  .referenceCompanyStrip.contact .referenceCrop img {
    width: 365%;
    height: auto;
  }

  .referenceStripCaption {
    grid-template-columns: 1fr auto;
    gap: 5px;
    padding: 7px;
  }

  .referenceStripCaption span {
    display: none;
  }

  .referenceStripCaption b {
    font-size: 12px;
  }

  .referenceStripCaption button {
    font-size: 10px;
    padding: 5px;
  }

  .referenceCompanyStrip.contact .referenceStripCaption b:after {
    display: block;
    margin: 3px 0 0;
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  .contactImageStack {
    gap: 16px;
  }

  .contactImagePanel {
    border-width: 4px;
    box-shadow: 5px 5px var(--yellow);
  }

  .imageActionLineup {
    grid-template-columns: 1fr 1fr;
  }

  .imageActionLineup > a, .imageActionLineup > span {
    min-height: 62px;
  }

  .imageActionLineup .actionMap {
    grid-column: 1/-1;
  }

  .aboutPanel {
    overflow: hidden;
  }

  .aboutPanel > img {
    width: 100%;
    max-width: 529px;
  }

  .correctShopData {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }

  .correctShopData > a {
    min-height: 65px;
    flex-direction: row;
    gap: 10px;
  }

  .correctShopData > a span {
    font-size: 24px;
  }

  .correctShopData h2 {
    font-size: 23px;
  }

  .correctShopData p, .correctShopData b {
    font-size: 12px;
  }

  .topReferenceStage {
    margin-bottom: 0;
  }

  .arcadeTitle .press {
    margin: 5px 0 2px;
    font-size: 12px;
  }

  .gameSetCrop {
    display: none;
  }

  .mobileGameSetCopy {
    display: block;
    padding: 17px 12px 14px;
    background: radial-gradient(circle at 75% 20%, #1263a1, #052343 65%);
    color: white;
    text-align: center;
    border-bottom: 3px solid var(--yellow);
  }
  
  .mobileGameSetCopy b {
    display: block;
    color: var(--yellow);
    font: 900 31px "Arial Black", sans-serif;
    letter-spacing: .06em;
    text-shadow: 3px 3px var(--red);
  }

  .mobileGameSetCopy p {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.45;
  }

  .contactImageStack .aboutPanel {
    display: none;
  }

  .companyOverviewStack {
    width: 92%;
    gap: 15px;
  }

  .companyOverviewImage {
    display: none;
  }

  .companyFeatureGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contactFeatureGrid {
    width: 100%;
  }

  .companyFeatureGrid article {
    position: relative;
    padding: 16px 15px 15px 68px;
    background: #f7f1e5;
    color: var(--ink);
    border: 5px double white;
    outline: 3px solid var(--ink);
    box-shadow: 6px 6px var(--yellow);
  }

  .companyFeatureGrid span {
    position: absolute;
    left: 12px;
    top: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--red);
    color: white;
    border: 3px solid var(--ink);
    font: 900 18px "Arial Black", sans-serif;
  }

  .companyFeatureGrid h2 {
    margin: 0 0 6px;
    color: #06396c;
    font-size: 20px;
  }

  .companyFeatureGrid p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
  }

  .companyShopPanel {
    border-width: 5px;
    box-shadow: 6px 6px var(--red);
  }

  .companyShopPanel > header {
    font-size: 18px;
  }

  .companyShopPanel > div {
    padding: 16px;
  }

  .companyShopPanel h2 {
    font-size: 24px;
  }

  .companyShopPanel p, .correctShopData p, .correctShopData b {
    font-size: 14px;
  }

  .companyShopPanel a {
    font-size: 16px;
  }

  .quickNav button {
    font-size: 13px;
  }

  .screenTitle p {
    font-size: 13px;
  }

  .companyProfile dt, .companyProfile dd {
    font-size: 14px !important;
  }

  .imageActionLineup strong {
    font-size: 14px;
  }

  .imageActionLineup small {
    font-size: 12px;
  }

  .companyOverviewStack .companyFeatureGrid article {
    padding: 14px 14px 16px;
  }

  .companyOverviewStack .companyFeatureGrid span {
    z-index: 2;
    left: 9px;
    top: 9px;
  }

  .companyFeatureVisual {
    height: 132px;
    margin: 0 0 13px;
    position: relative;
    overflow: hidden;
    background: #dce9ec;
    border: 4px solid var(--ink);
  }

  .companyFeatureVisual img {
    position: absolute;
    top: -82px;
    width: 300%;
    max-width: none;
    height: auto;
  }

  .featureShop .companyFeatureVisual img { left: 0; }
  .featureFacility .companyFeatureVisual img { left: -100%; }
  .featureSkill .companyFeatureVisual img { left: -200%; }
  .companyOverviewStack .companyFeatureGrid h2,
  .companyOverviewStack .companyFeatureGrid p {
    padding-left: 3px;
  }

  .usedCarsOverlay {
    padding: 10px;
  }

  .usedCarsCabinet {
    width: 100%;
    max-height: calc(100svh - 20px);
    padding: 14px;
    border-width: 4px;
    box-shadow: 0 0 0 3px #0b0b0b, 5px 5px 0 #f7bc16;
  }

  .usedCarsClose {
    padding: 7px 9px;
    font-size: 12px;
  }

  .usedCarsHeader {
    margin: 4px auto 14px;
    padding-top: 2px;
  }

  .usedCarsHeader small {
    font-size: 11px;
  }

  .usedCarsHeader h2 {
    font-size: 27px;
  }

  .usedCarsHeader p {
    font-size: 13px;
    line-height: 1.55;
  }

  .usedCarsGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .usedCarCard {
    width: min(100%, 430px);
    margin: auto;
    border-width: 4px;
    box-shadow: 4px 4px 0 #d89f12;
  }

  .usedCarsBack {
    margin-top: 18px;
    font-size: 15px;
  }
}

@media (max-width: 620px) {
  .titleVisuals {
    gap: 7px;
    width: 96%;
  }

  .titleVisuals > div {
    height: 85px;
    border-width: 3px;
    box-shadow: 3px 3px var(--red);
  }

  .titleVisuals > .mainVisual {
    height: 115px;
  }

  .titleVisuals b {
    font-size: 8px;
    padding: 4px;
  }

  .menuBadge {
    display: block;
    width: max-content;
    margin: 0 0 5px;
    font-size: 9px;
  }

  .roster button {
    min-height: 195px;
  }

  .servicePhoto {
    height: 85px;
  }

  .playerCard > span {
    min-width: 70px;
    height: 60px;
    font-size: 11px;
  }

  .carPhoto {
    height: 125px !important;
  }

  .manager span {
    font-size: 45px;
  }

  .gameFrame {
    font-size: 16px;
  }

  .titleLogo p {
    font-size: 13px;
  }

  .mascotGuide {
    right: 4px;
    bottom: 8px;
    transform: scale(.7);
    transform-origin: right bottom;
  }

  .mascotGuide .speech {
    width: 190px;
    font-size: 13px;
  }

  .mascotCrop {
    width: 130px;
  }

  .mascotCrop img {
    width: 580px;
    left: -447px;
    top: -188px;
  }

  .mascot-detail, .mascot-services {
    position: fixed;
    bottom: 5px;
  }

  .back {
    z-index: 26;
  }

  .teamRecruitBanner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 7px;
  }

  .teamRecruitBanner span, .teamRecruitBanner small {
    justify-self: center;
  }

  .teamRecruitBanner b {
    font-size: 19px;
  }

  .recruitHero {
    grid-template-columns: 1fr;
  }

  .recruitMascot {
    min-height: 230px;
  }

  .recruitMascot img {
    width: 190px;
  }

  .recruitHero article {
    padding: 22px 18px;
  }

  .recruitHero h2 {
    font-size: 29px;
  }

  .recruitHero article > p {
    font-size: 15px;
  }

  .recruitTwoColumn {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .recruitRequirements dl > div {
    grid-template-columns: 105px 1fr;
  }

  .recruitRequirements dt, .recruitRequirements dd {
    padding: 11px 9px;
    font-size: 13px;
  }

  .recruitApply {
    padding: 23px 17px;
  }
  
  .recruitApply h2 {
    font-size: 25px;
  }

  .recruitApply > div {
    grid-template-columns: 1fr;
  }

  .recruitApply a, .recruitApply button {
    font-size: 17px;
  }

  .titleGameHeader {
    height: 48px;
    padding-left: 8px;
  }

  .titleGameHeader > b {
    font-size: 13px;
  }

  .titleGameHeader > a {
    margin-right: 4px;
    padding: 3px;
    font-size: 14px;
  }

  .titleGameHeader > button {
    width: 42px;
    height: 40px;
  }

  .arcadeTitle {
    min-height: calc(100vh - 82px) !important;
    padding: 0 4px 8px;
  }

  .topReferenceStage {
    width: 100%;
  }

  .topHotspot:hover {
    box-shadow: none;
  }

  .arcadeTitle .press {
    font-size: 10px;
  }

  .titleConsole {
    min-height: 100svh;
    display: flex;
    align-items: stretch;
  }

  .titleConsole .titleFrame {
    width: 100%;
    margin-block: auto;
  }

  .titleConsole .arcadeTitle {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .faithfulHero {
    padding: 14px 10px 28px;
  }

  .faithfulHero > img {
    border-width: 3px;
  }

  .hotlinks {
    flex-direction: column;
  }

  .hotlinks a {
    text-align: center;
  }

  .referenceBoard img {
    border-width: 3px;
    box-shadow: 6px 6px #f7c719;
  }
}

@media (max-width: 520px) {
  .miniLogo b {
    font-size: 20px;
  }

  .miniLogo span {
    font-size: 8px;
  }

  .titleLogo h1 {
    font-size: 44px;
    -webkit-text-stroke: 2px #06172e;
  }

  .titleLogo small {
    letter-spacing: 4px;
  }

  .titleLogo p {
    font-size: 10px;
  }

  .pixelPlayers {
    font-size: 45px;
    gap: 15px;
  }

  .pixelPlayers b {
    font-size: 60px;
  }

  .start {
    font-size: 18px;
  }

  .roster {
    grid-template-columns: repeat(2, 1fr);
    padding: 13px;
    gap: 10px;
  }

  .roster button {
    min-height: 135px;
  }

  .screenTitle h1 {
    font-size: 18px;
  }

  .detailBoard {
    padding: 12px;
  }

  .detailBoard article {
    padding: 12px;
  }

  .carModes {
    grid-template-columns: 1fr;
    padding: 22px 14px 60px;
  }

  .teamData {
    padding: 22px 14px 60px;
  }
  
  .teamData dl {
    grid-template-columns: 1fr;
  }

  .contactBox > a {
    font-size: 33px;
  }

  .gameHeader > a {
    padding: 7px;
    font-size: 9px;
    margin-left: 0;
  }

  .field:before {
    width: 260px;
    height: 260px;
  }

  .diamond {
    width: 180px;
    height: 180px;
  }

  .titleVisuals {
    gap: 7px;
    width: 96%;
  }

  .titleVisuals > div {
    height: 85px;
    border-width: 3px;
    box-shadow: 3px 3px var(--red);
  }

  .titleVisuals > .mainVisual {
    height: 115px;
  }

  .titleVisuals b {
    font-size: 8px;
    padding: 4px;
  }

  .menuBadge {
    display: block;
    width: max-content;
    margin: 0 0 5px;
    font-size: 9px;
  }

  .roster button {
    min-height: 195px;
  }

  .servicePhoto {
    height: 85px;
  }

  .playerCard > span {
    min-width: 70px;
    height: 60px;
    font-size: 11px;
  }

  .carPhoto {
    height: 125px !important;
  }

  .manager span {
    font-size: 45px;
  }

  .gameFrame {
    font-size: 17px;
  }

  .titleLogo p {
    font-size: 14px;
  }

  .mascotGuide {
    height: auto !important;
    min-height: 104px;
    padding-block: 8px;
  }

  .mascotGuide .speech {
    width: calc(100% - 82px) !important;
    min-height: 58px;
    padding: 7px 10px !important;
    gap: 3px;
  }

  .mascotGuide .speech small {
    font-size: 8px;
  }

  .mascotGuide .speech b {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .mascotGuide .speech:before {
    left: -16px;
    border-width: 8px;
  }

  .mascotCrop {
    width: 70px !important;
    height: 80px !important;
    flex-basis: 70px;
  }

  .menuPanel button b {
    font-size: 17px;
  }

  .menuPanel button small {
    font-size: 12px;
  }

  .screenTitle h1 {
    font-size: 21px;
  }

  .roster > button > strong {
    font-size: 16px;
  }

  .playerCard h2 {
    font-size: 24px;
  }

  .playerCard p, .carModes p, .teamData article > p, .contactBox p {
    font-size: 15px;
  }

  .quickNav {
    grid-template-columns: repeat(2, 1fr);
  }

  .quickNav button {
    font-size: 12px;
  }

  .field {
    min-height: 360px;
  }

  .field:before {
    width: 245px;
    height: 245px;
  }

  .diamond {
    width: 165px;
    height: 165px;
  }

  .field .base {
    width: 72px;
    height: 72px;
    border-width: 5px;
  }

  .field .baseLabel {
    width: 62px;
    min-height: 38px;
  }

  .baseHome { left: calc(50% - 36px); }
  .baseFirst { right: 3%; top: calc(52% - 36px); }
  .baseSecond { left: calc(50% - 36px); }
  .baseThird { left: 3%; top: calc(52% - 36px); }
  .field .base i { font-size: 13px; }
  .field .base b { font-size: 8px; }
  .zoomTrigger > span {
    font-size: 10px;
    padding: 5px;
  }

  .imageZoom {
    padding: 62px 10px 20px;
  }

  .imageZoom img {
    border-width: 4px;
    box-shadow: 5px 5px var(--yellow);
  }

  .zoomClose {
    right: 10px;
    top: 10px;
  }
  
  .teamRecruitBanner span, .teamRecruitBanner small {
    justify-self: center;
  }

  .teamRecruitBanner b {
    font-size: 19px;
  }

  .serviceMenuOverlay, .serviceCardOverlay {
    padding: 12px;
  }

  .serviceMenuCabinet {
    padding: 10px 8px 13px;
    border-width: 5px;
    box-shadow: 6px 6px var(--yellow);
  }

  .serviceMenuClose {
    right: -5px;
    top: -13px;
  }

  .serviceMenuCabinet > p {
    font-size: 11px;
    margin: 8px 0;
  }

  .servicePopupCard {
    padding: 14px 12px;
  }

  .servicePopupCard:before {
    margin: -14px -12px 10px;
  }

  .servicePopupCard > img {
    max-height: 290px;
  }

  .servicePopupCard > h2 {
    font-size: 23px;
  }

  .popupDetail {
    font-size: 16px;
  }

  .fieldBench {
    left: 7px;
    bottom: 9px;
    width: 108px;
    min-height: 78px;
    transform: none;
    grid-template-columns: 34px 1fr;
    align-items: end;
    gap: 2px;
    padding: 20px 3px 4px;
    border-width: 4px;
    box-shadow: 4px 4px var(--yellow);
  }

  .fieldBench:hover, .fieldBench.active {
    transform: translateY(-3px);
  }

  .fieldBench img {
    width: 37px;
    height: 49px;
  }

  .fieldBench span {
    padding-top: 3px;
  }

  .fieldBench b {
    font-size: 11px;
    line-height: 1.12;
    white-space: nowrap;
  }

  .fieldBench small {
    display: none;
  }

  .fieldBench i {
    font-size: 7px;
    padding: 3px;
  }

  .baseHome {
    bottom: 6%;
  }

  .newCarMode .mascotCarVisual, .usedCarMode .mascotCarVisual {
    display: block;
    padding: 0;
    gap: 10px;
  }

  .newCarMode .mascotCarVisual .makerLogoBoard, .usedCarMode .mascotCarVisual .makerLogoBoard {
    top: 49px;
    left: 10px;
    width: calc(100% - 145px);
    max-width: none;
    max-height: 108px;
    padding: 6px;
    transform: none !important;
  }

  .newCarMode .mascotCarVisual .carMascot, .usedCarMode .mascotCarVisual .carMascot {
    right: 10px;
    bottom: 0;
    width: 118px;
    height: 172px;
    margin: 0;
    flex-basis: 118px;
  }

  .carSelectScreen .carModes .carConsultButton {
    font-size: 15px;
  }

  .mascotCarVisual > span {
    top: 9px;
    left: 9px;
    padding: 7px 10px;
    font-size: 14px;
  }

  .usedCarMode .mascotCarVisual .makerLogoBoard {
    transform: translateY(-7px);
  }
}

@media (max-width: 420px) {
  .referenceCompanyStrip.company {
    aspect-ratio: 1.72/1;
  }

  .referenceCompanyStrip.company .referenceCrop img {
    width: 340%;
  }

  .referenceCompanyStrip.contact {
    aspect-ratio: 1.65/1;
  }

  .referenceCompanyStrip.contact .referenceCrop img {
    width: 455%;
  }

  .referenceStripCaption b {
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .imageActionLineup strong {
    font-size: 12px;
  }

  .imageActionLineup small {
    font-size: 9px;
  }

  .correctShopData {
    padding: 12px;
  }

  .contactServiceSelect {
    font-size: 15px;
  }
}

@media (max-width: 340px) {
  .fieldBench {
    left: 4px;
    width: 94px;
    grid-template-columns: 29px 1fr;
  }

  .fieldBench img {
    width: 32px;
  }

  .fieldBench b {
    font-size: 10px;
  }

  .fieldBench:before {
    font-size: 9px;
  }
  
  .fieldBench small {
    display: none;
  }
}