/* Japanese Casino global template */
:root {
  --jc-red: #8f1d2c;
  --jc-red-dark: #7d1424;
  --jc-gold: #c9a24d;
  --jc-gold-light: #ffd98a;
  --jc-cream: #f4efe9;
  --jc-ink: #1d1114;
  --jc-muted: #43373a;
  --jc-side: #160309;
}

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

.jc-body {
  margin: 0;
  background: var(--jc-cream);
  font-family: 'Zen Kaku Gothic New', system-ui, sans-serif;
  color: var(--jc-ink);
}

a { color: var(--jc-red); text-decoration: none; }
a:hover { color: #c2432f; }

.jc-form { margin: 0; display: inline; }
.jc-form--winner, .jc-form--slot, .jc-form--prov { display: block; }

.jc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 26px;
  border: 1px solid #d8b45f;
  border-radius: 8px;
  background: linear-gradient(180deg, #b8283a 0%, var(--jc-red-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 232, 190, 0.3), 0 6px 18px rgba(125, 20, 36, 0.35);
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffe9b0;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.18s, transform 0.12s, box-shadow 0.18s, background 0.18s;
}

.jc-btn:hover { filter: brightness(1.12); }

.jc-btn:active { transform: scale(0.97); }

.jc-btn--ghost {
  border-color: rgba(216, 180, 95, 0.75);
  background: rgba(0, 0, 0, 0.28);
  color: #ffe1a6;
  box-shadow: none;
}

.jc-btn--ghost:hover {
  background: rgba(216, 180, 95, 0.16);
  color: #fff1cf;
  filter: none;
}

.jc-btn--block { width: 100%; }
.jc-btn--sm { min-height: 44px; padding: 12px 24px; font-size: 15px; }
.jc-btn--hero { min-height: 52px; padding: 14px 30px; font-size: clamp(15px, 1.5vw, 18px); }

.jc-layout {
  display: flex;
  min-height: 100vh;
  background: var(--jc-cream);
}

.jc-side {
  width: 268px;
  flex: none;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  background-color: var(--jc-side);
  background-size: cover;
  background-position: center;
  border-right: 2px solid rgba(201, 162, 77, 0.45);
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.35);
  z-index: 40;
}

.jc-side-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.jc-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(201, 162, 77, 0.22);
}

.jc-logo, .jc-footer-logo {
  max-width: 168px;
  max-height: 114px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
  display: block;
}

.jc-logo--header {
  max-width: 112px;
  max-height: 56px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}

.jc-side-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 77, 0.28), transparent);
  margin: 0 14px;
}

.jc-main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  flex: 1;
  overflow-y: auto;
}

.jc-nav-slot--desktop .jc-main-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  color: #f3e3c8;
  font-size: 15px;
  font-weight: 500;
}

.jc-nav-slot--desktop .jc-main-link:hover {
  background: rgba(201, 162, 77, 0.14);
  color: var(--jc-gold-light);
}

.jc-side-cta { padding: 18px 18px 26px; border-top: 1px solid rgba(201, 162, 77, 0.22); }

.jc-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.jc-header {
  position: relative;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 clamp(12px, 2.5vw, 34px);
  background: linear-gradient(180deg, #25060f 0%, #150309 100%);
  border-bottom: 1px solid rgba(201, 162, 77, 0.45);
  z-index: 5;
}

.jc-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 162, 77, 0.5);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--jc-gold-light);
  cursor: pointer;
  margin-right: auto;
  padding: 0;
}

.jc-burger-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.jc-header-logo {
  display: none;
  position: absolute;
  left: 68px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.jc-header-auth {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 14px);
  flex: none;
}

.jc-mobnav-wrap {
  display: none;
  background-color: var(--jc-side);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(201, 162, 77, 0.3);
}

.jc-nav-slot--mobile .jc-main-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}

.jc-nav-slot--mobile .jc-main-link {
  flex: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 99px;
  border: 1px solid rgba(201, 162, 77, 0.4);
  color: #f3e3c8;
  font-size: 14px;
  white-space: nowrap;
}

.jc-nav-slot--mobile .jc-main-link:hover {
  border-color: rgba(201, 162, 77, 0.7);
  color: var(--jc-gold-light);
}

.jc-main { flex: 1; min-width: 0; }

.jc-hero {
  position: relative;
  min-height: clamp(400px, 46vw, 660px);
  display: flex;
  align-items: center;
  background-color: #12030a;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.jc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 3, 8, 0.92) 0%, rgba(12, 3, 8, 0.72) 42%, rgba(12, 3, 8, 0.05) 78%);
}

.jc-hero-copy {
  position: relative;
  max-width: min(620px, 58%);
  padding: clamp(22px, 3.4vw, 44px) clamp(20px, 4vw, 52px);
}

.jc-hero-title {
  margin: 0 0 26px;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #fff4de;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}

.jc-section {
  padding: clamp(24px, 2.8vw, 38px) clamp(16px, 3vw, 48px) clamp(16px, 2vw, 26px);
}

.jc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.jc-h2 {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--jc-ink);
}

.jc-h2--spaced { margin-bottom: 18px; }

.jc-section-tag {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jc-red);
}

.jc-win-row {
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.jc-winner {
  flex: none;
  width: clamp(190px, 22vw, 250px);
  scroll-snap-align: start;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(143, 29, 44, 0.14);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(60, 10, 20, 0.07);
  cursor: pointer;
  width: clamp(190px, 22vw, 250px);
  text-align: left;
  font: inherit;
  color: inherit;
}

.jc-winner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(60, 10, 20, 0.12);
}

.jc-winner-thumb {
  width: 58px;
  height: 78px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.jc-winner-meta { min-width: 0; display: flex; flex-direction: column; }

.jc-winner-user {
  font-weight: 700;
  font-size: 15px;
  color: var(--jc-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-winner-amt {
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--jc-red);
  margin-top: 2px;
}

.jc-winner-ago { font-size: 12px; color: #7b6f70; margin-top: 2px; }

.jc-section--content {
  background: #fbf7f2;
  border-block: 1px solid rgba(143, 29, 44, 0.12);
  padding: clamp(28px, 3.6vw, 50px) clamp(16px, 3vw, 48px);
}

.jc-content-wrap { position: relative; max-width: 900px; margin: 0 auto; }

.jc-content {
  font-size: clamp(15px, 1.5vw, 16px);
  line-height: 1.75;
  color: var(--jc-muted);
}

.jc-content h2, .jc-content h3 {
  font-family: 'Shippori Mincho', serif;
  color: var(--jc-ink);
  font-weight: 700;
}

.jc-content h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.15; margin: 0 0 16px; }
.jc-content h3 { font-size: clamp(19px, 2vw, 26px); margin: 26px 0 12px; }

.jc-content p { margin: 0 0 14px; }
.jc-content ul, .jc-content ol { margin: 0 0 20px; padding-left: 22px; }
.jc-content blockquote {
  margin: 0 0 24px;
  padding: 22px 26px;
  border-left: 4px solid var(--jc-gold);
  background: #fff;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 6px 20px rgba(60, 10, 20, 0.06);
}

.jc-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.jc-content table th,
.jc-content table td {
  padding: 13px 18px;
  border-top: 1px solid rgba(143, 29, 44, 0.12);
  text-align: left;
}

.jc-content table th {
  background: #1a040b;
  color: #ffe9b0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.jc-slot-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.3vw, 16px);
}

.jc-slot {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: #e6ded6;
  box-shadow: 0 6px 16px rgba(60, 10, 20, 0.1);
  display: block;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.jc-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jc-slot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(60, 10, 20, 0.2);
}

.jc-slot-wrap--hidden { display: none !important; }

.jc-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 2.5vw, 30px);
}

.jc-more-caret { margin-right: 8px; }

.jc-prov-row {
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto;
  padding-bottom: 10px;
}

.jc-prov {
  flex: none;
  width: clamp(140px, 16vw, 190px);
  height: clamp(72px, 8vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  background: #1a040b;
  border: 1px solid rgba(201, 162, 77, 0.28);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s;
}

.jc-prov:hover { border-color: rgba(201, 162, 77, 0.7); }

.jc-prov img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.82;
  display: block;
}

.jc-footer {
  background: linear-gradient(180deg, #25060f 0%, #150309 100%);
  border-top: 2px solid rgba(201, 162, 77, 0.45);
  color: #f3e3c8;
  overflow: hidden;
}

.jc-footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(28px, 3.4vw, 44px) clamp(20px, 4vw, 56px) clamp(20px, 2.4vw, 30px);
}

.jc-footer-logo { filter: none; margin: 0 auto; }

.jc-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px clamp(18px, 3vw, 36px);
}

.jc-nav-slot--footer .jc-footer-nav { gap: 11px clamp(18px, 3vw, 36px); }

.jc-footer-link {
  color: rgba(243, 227, 200, 0.85);
  font-size: 15px;
}

.jc-footer-link:hover { color: var(--jc-gold-light); }

.jc-footer-bar {
  border-top: 1px solid rgba(201, 162, 77, 0.25);
  padding: 18px clamp(20px, 4vw, 56px);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(243, 227, 200, 0.7);
}

.jc-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 35;
}

.jc-scrim[hidden] { display: none; }

.noscroll { scrollbar-width: thin; }
.noscroll::-webkit-scrollbar { height: 8px; width: 8px; }
.noscroll::-webkit-scrollbar-thumb {
  background: rgba(143, 29, 44, 0.35);
  border-radius: 99px;
}

@media (max-width: 980px) {
  .jc-side {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .jc-side.is-open { transform: translateX(0); }

  .jc-burger { display: inline-flex; }
  .jc-header-logo { display: flex; align-items: center; justify-content: center; }
  .jc-login-desktop { display: none; }
  /* Menu lives in sidebar/drawer — no chip row under header (Safari/Meow-class) */
  .jc-mobnav-wrap,
  .jc-nav-slot--mobile { display: none !important; }

  .jc-hero-copy {
    max-width: 100%;
    padding-top: clamp(96px, 26vw, 180px);
  }

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

@media (max-width: 620px) {
  .jc-slot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}
