:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: transparent;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #e0e0e0;
  background-color: #2e49d5;
  background-image: url("../images/cjwbg-top.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  user-select: none;
}

a {
  color: #1e73be;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #3f38be 8.36%, #47b2e7 94.85%);
  box-shadow: 0 0 7px rgb(0 0 0 / 14%);
}

.header-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1130px);
  min-height: 70px;
  margin: 0 auto;
  padding: 8px 20px 3px;
}

.site-logo img {
  width: auto;
  max-height: 47px;
}

.menu-toggle {
  position: absolute;
  z-index: 10;
  right: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hamburger-icon {
  position: relative;
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.primary-navigation {
  display: none;
  padding: 10px 20px 20px;
  background: rgb(33 48 151 / 96%);
}

.primary-navigation ul {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.primary-navigation a {
  display: block;
  padding: 11px 15px;
  color: #fff;
  line-height: 1.4;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation a[aria-current="page"] {
  color: #dedede;
  background: rgb(255 255 255 / 8%);
}

main {
  width: min(100%, 1050px);
  min-height: calc(100vh - 55px);
  margin: 0 auto;
  padding: 1px 15px 0;
}

.manual-card {
  margin: 60px auto;
  padding: 20px 20px 10px;
  color: #000;
  text-align: center;
  background: rgb(255 255 255 / 95%);
  border-radius: 10px;
}

.manual-card h1,
.manual-card h2,
.manual-card h3 {
  margin-top: 0;
  font-weight: 400;
}

.manual-card p {
  margin-top: 0;
}

.manual-card h1 {
  margin-bottom: 20px;
  font-size: 1.5em;
  line-height: 1.2;
}

.manual-card h2 {
  margin-bottom: 10px;
  font-size: 1.2em;
  line-height: 1.2;
}

.manual-card h3 {
  margin-bottom: 8px;
  font-size: 1.05em;
  line-height: 1.2;
}

.manual-card p {
  margin-bottom: 10px;
}

.guide-breadcrumb {
  margin-bottom: 18px;
  font-size: 0.9rem;
  text-align: left;
}

.guide-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-breadcrumb li:not(:last-child)::after {
  margin-left: 6px;
  color: #697386;
  content: "/";
}

.related-guides {
  margin: 30px 0 10px;
  padding: 18px;
  text-align: left;
  background: #f5f7ff;
  border: 1px solid #dbe2ff;
  border-radius: 8px;
}

.related-guides h2 {
  margin-bottom: 12px;
}

.related-guides ul {
  margin: 0;
  padding-left: 22px;
}

.related-guides li + li {
  margin-top: 7px;
}

.guide-hero,
.guide-rate-image {
  height: auto;
  margin-right: auto;
  margin-left: auto;
  box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
}

.guide-hero {
  margin-bottom: 20px;
  border-radius: 10px;
}

.guide-section {
  margin-bottom: 25px;
}

.guide-list {
  margin: 0 0 10px 18px;
  padding: 0 20px 40px;
  line-height: 1.7;
  list-style: none;
  text-align: left;
}

.guide-list li {
  padding: 7px;
  border-bottom: 1px solid rgb(0 0 0 / 7%);
}

.bet-type {
  margin-bottom: 15px;
}

.bet-type p {
  margin-bottom: 5px;
}

.rates-section {
  margin-top: 20px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.rates-table {
  width: 100%;
  margin: 0;
  font-size: 0.95em;
  border-collapse: collapse;
}

.rates-table th,
.rates-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.rates-table th {
  background: #f5fafe;
}

.rates-table td:last-child {
  text-align: center;
}

.guide-rate-image {
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.guide-note {
  margin: 30px 0;
  padding: 20px;
  background: #f0f8ff;
  border-radius: 8px;
}

.guide-note p {
  margin: 0;
}

.back-navigation {
  margin: 30px 0 20px;
  text-align: center;
}

.back-to-list {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  background-color: #555;
  border-radius: 5px;
}

.site-footer {
  padding: 20px;
  color: #14225c;
  text-align: center;
}

.site-footer-inner {
  width: min(100%, 1050px);
  margin: 0 auto;
}

.responsible-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.responsible-notice p,
.footer-copyright {
  margin: 0;
}

.age-badge {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-weight: 700;
  background: #d9364f;
  border: 2px solid #fff;
  border-radius: 50%;
}

.site-footer a {
  color: #0b2f9f;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.footer-copyright {
  color: #14225c;
}

.trust-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.bottom-menu {
  position: fixed;
  z-index: 1100;
  bottom: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 55px;
  background-color: #0e3e92;
  background-image: url("../images/fixed-bottom-menu.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.bottom-menu a {
  width: 20%;
  height: 100%;
}

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

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .manual-card {
    margin-top: 60px;
  }
}

@media (max-width: 499px) {
  body {
    padding-bottom: 73px;
  }

  .bottom-menu {
    display: flex;
  }

  .site-footer {
    padding-bottom: 25px;
  }

  .responsible-notice {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 450px) {
  body { padding-bottom: 65px; }
  .bottom-menu { height: 65px; }
}

@media (max-width: 400px) {
  body { padding-bottom: 59px; }
  .bottom-menu { height: 59px; }
}

@media (max-width: 350px) {
  body { padding-bottom: 51px; }
  .bottom-menu { height: 51px; }
}

@media (max-width: 300px) {
  body { padding-bottom: 45px; }
  .bottom-menu { height: 45px; }
}