/*
Theme Name: Casinome Tokyo
Theme URI: https://xn--lck0a4d4cth.tokyo/
Author: カジノミー.tokyo Editorial
Author URI: https://xn--lck0a4d4cth.tokyo/about-us/
Description: Independent review theme for Casino Me (カジノミー). Not the official Casino.me website.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casinome-tokyo
Tags: casino, japan, two-columns, custom-menu, featured-images, translation-ready, dark
*/

:root {
  --wp--preset--color--base: #140a22;
  --wp--preset--color--contrast: #f8f5ff;
  --wp--preset--color--primary: #8b5cf6;
  --wp--preset--color--primary-hover: #a78bfa;
  --wp--preset--color--accent: #22d3ee;
  --wp--preset--color--gold: #fbbf24;
  --wp--preset--color--ink: #efe8ff;
  --wp--preset--color--muted: #b7a8d4;
  --wp--preset--color--line: rgba(167, 139, 250, 0.22);
  --wp--preset--color--fog: #1e1233;
  --wp--preset--color--dark: #0c0616;
  --wp--preset--color--cta: #7c3aed;
  --wp--preset--font-size--small: 0.875rem;
  --wp--preset--font-size--medium: 1rem;
  --wp--preset--font-size--large: 1.25rem;
  --wp--custom--layout--wide: 1120px;
  --wp--custom--layout--content: 760px;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body.casinome-theme,
body {
  margin: 0;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--base);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wp--preset--color--accent); text-decoration: none; }
a:hover { color: #67e8f9; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: "Outfit", "Montserrat", "Noto Sans JP", sans-serif;
  font-weight: 700;
  line-height: 1.28;
  color: var(--wp--preset--color--contrast);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.85rem); margin: 1.6em 0 0.6em; }
h3 { font-size: 1.12rem; margin: 1.3em 0 0.45em; }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; position: fixed;
  top: 8px; left: 8px; z-index: 100000; background: #8b5cf6; color: #fff; padding: 8px 14px;
}

.site-disclaimer {
  background: #0a0514;
  color: #c4b5e0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}
.site-disclaimer strong { color: #fbbf24; font-weight: 600; }
.site-disclaimer a { color: #22d3ee; }

#masthead.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20, 10, 34, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr auto;
  align-items: center;
  padding: 0 20px;
  position: relative;
}
.custom-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.custom-logo-link svg { height: 36px; width: auto; display: block; }
.custom-logo-link img.custom-logo { height: 36px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.site-branding .site-title { display: none; }

#site-navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.primary-menu {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-menu > li > a {
  display: block;
  padding: 10px 9px;
  color: #c4b5e0;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a { color: #fff; }
.menu-item-has-children { position: relative; }
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #1a0f2e;
  border: 1px solid var(--wp--preset--color--line);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 20;
  border-radius: 10px;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu { display: block; }
.sub-menu a {
  display: block;
  padding: 8px 16px;
  color: #efe8ff;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.sub-menu a:hover { background: rgba(139, 92, 246, 0.18); color: #22d3ee; }

.header-tools { display: flex; align-items: center; gap: 10px; padding-left: 16px; }
.lang-switch { display: flex; gap: 6px; font-family: "Outfit", sans-serif; font-size: 11px; letter-spacing: 0.14em; }
.lang-switch a { color: #8b7aa8; padding: 4px 6px; }
.lang-switch a.is-active { color: #fff; border-bottom: 2px solid var(--wp--preset--color--primary); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.4);
  width: 44px; height: 44px;
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: #f8f5ff; margin: 4px auto;
}

.wp-block-cover.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background: #140a22 center/cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.wp-block-cover.hero::after,
.wp-block-cover.hero .wp-block-cover__background {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,34,.25) 0%, rgba(12,6,22,.78) 62%, #140a22 100%);
  z-index: 0;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(139,92,246,.12) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(34,211,238,.18), transparent 40%);
  background-size: calc(100% / 4) 100%, auto;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1120px; width: 100%;
  margin: 0 auto; padding: 48px 24px 56px;
}
.hero-kicker {
  font-family: "Outfit", sans-serif;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: #22d3ee; margin-bottom: 12px;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { color: #ddd6fe; max-width: 48ch; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link,
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  color: #fff !important;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35);
  transition: background .2s ease, transform .15s ease;
}
.wp-block-button__link:hover,
.cta-btn:hover { background: #7c3aed; transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.08); }

#content.site-content { background: var(--wp--preset--color--base); }
.site-main { max-width: 1120px; margin: 0 auto; padding: 0 20px 80px; }
.entry-content { max-width: 760px; }
.entry-content.wide,
.alignwide { max-width: 1120px; }

.breadcrumbs {
  font-size: 12px; color: #8b7aa8; margin: 16px 0 0;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}
.breadcrumbs a { color: #b7a8d4; }
.breadcrumbs span { color: #f8f5ff; }

.store-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0;
  max-width: 1120px;
}
.store-card, .info-card {
  display: block;
  background: var(--wp--preset--color--fog);
  border: 1px solid var(--wp--preset--color--line);
  overflow: hidden;
  color: inherit;
  border-radius: 14px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.store-card:hover, .info-card:hover {
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.25);
  transform: translateY(-3px);
  color: inherit;
}
.store-card img { width: 100%; height: 160px; object-fit: cover; }
.store-card .body, .info-card .body { padding: 16px 16px 20px; }
.store-card .city {
  font-family: "Outfit", sans-serif;
  font-size: 11px; letter-spacing: 0.2em; color: var(--wp--preset--color--accent);
}
.store-card h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.store-card p { font-size: 13px; color: var(--wp--preset--color--muted); margin: 0; }
.info-card h3 { margin-top: 0; }

.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start;
  margin: 32px 0;
}
.split img { width: 100%; border-radius: 14px; border: 1px solid var(--wp--preset--color--line); }

.wp-block-table, .bonus-table-wrap {
  overflow-x: auto;
  margin: 20px 0 32px;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
}
.bonus-table, .wp-block-table table {
  min-width: 560px;
  font-size: 14px;
}
.bonus-table th, .bonus-table td,
.wp-block-table th, .wp-block-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--wp--preset--color--line);
  vertical-align: top;
}
.bonus-table th, .wp-block-table th {
  background: #2a1650;
  color: #fbbf24;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-weight: 600; font-size: 12px; letter-spacing: 0.06em;
}
.bonus-table caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  color: #c4b5e0;
  font-size: 13px;
}
.bonus-table tr:nth-child(even) td { background: rgba(139, 92, 246, 0.08); }
.note, .wp-block-verse {
  font-size: 13px; color: #c4b5e0; background: var(--wp--preset--color--fog);
  padding: 14px 16px; border-left: 3px solid var(--wp--preset--color--gold);
  margin: 18px 0; border-radius: 0 10px 10px 0;
}

.pros-cons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0;
}
.pros, .cons { padding: 18px; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; background: var(--wp--preset--color--fog); }
.pros h3 { color: #34d399; margin-top: 0; }
.cons h3 { color: #fb7185; margin-top: 0; }
.pros li, .cons li { margin: 6px 0; }

.faq-item { border-bottom: 1px solid var(--wp--preset--color--line); }
.faq-item dt, .faq-q {
  margin: 0;
  padding: 16px 36px 16px 0;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-item dt::after, .faq-q::after {
  content: "+";
  position: absolute; right: 8px; top: 14px;
  font-family: "Outfit", sans-serif; font-weight: 400; font-size: 22px; color: #a78bfa;
}
.faq-item dd, .faq-a { display: none; margin: 0 0 16px; color: #c4b5e0; }
.faq-item.is-open dd, .faq-item.is-open .faq-a { display: block; }
.faq-item.is-open dt::after, .faq-item.is-open .faq-q::after { content: "\2212"; }

.ui-panel {
  background: var(--wp--preset--color--fog);
  border: 1px solid var(--wp--preset--color--line);
  padding: 22px;
  margin: 24px 0 32px;
  border-radius: 14px;
}
.ui-panel h3 { margin-top: 0; }

/* editorial byline */
.byline {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline;
  font-size: 13px; color: #c4b5e0;
  border-bottom: 1px solid var(--wp--preset--color--line);
  padding-bottom: 14px; margin-bottom: 26px;
}
.byline-who { font-weight: 700; color: var(--wp--preset--color--ink); }
.byline-date { color: var(--wp--preset--color--gold); }
.byline-basis { flex: 1 1 260px; font-size: 12px; opacity: .85; }

/* in-page contents */
.page-toc {
  background: linear-gradient(180deg, rgba(139,92,246,.12), rgba(34,211,238,.05));
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px; padding: 20px 24px; margin: 0 0 34px;
}
.page-toc h2 {
  margin: 0 0 12px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}
.page-toc ol {
  margin: 0; padding: 0; list-style: none;
  columns: 2; column-gap: 30px;
}
.page-toc li { counter-increment: toc; margin: 0 0 8px; break-inside: avoid; font-size: 14px; }
.page-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "Outfit", sans-serif; color: #a78bfa; margin-right: 10px; font-size: 12px;
}
.page-toc a { color: var(--wp--preset--color--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.page-toc a:hover { border-bottom-color: var(--wp--preset--color--accent); }

/* worked-example box */
.scenario { border-left: 3px solid var(--wp--preset--color--accent); }
.scn-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px dashed var(--wp--preset--color--line);
  font-size: 14px;
}
.scn-row:last-of-type { border-bottom: 0; }
.scn-k { color: #c4b5e0; }
.scn-v { font-family: "Outfit", sans-serif; font-weight: 700; text-align: right; }

/* dense title lists (barred games, providers) */
.title-list {
  list-style: none; margin: 14px 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px;
}
.title-list li {
  font-size: 13px; color: #d8cdf0; padding-left: 14px; position: relative;
}
.title-list li::before { content: "×"; position: absolute; left: 0; color: #fb7185; }
.check-list label {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px dashed rgba(167,139,250,.25); font-size: 14px; cursor: pointer;
}
.check-list input { margin-top: 4px; }
.calc-row { display: grid; grid-template-columns: 1fr 140px; gap: 10px; align-items: center; margin: 8px 0; }
.calc-row input, .calc-row select {
  width: 100%; padding: 8px 10px; border: 1px solid rgba(167,139,250,.35);
  font: inherit; background: #140a22; color: #f8f5ff; border-radius: 8px;
}
.calc-total {
  margin-top: 14px; font-size: 1.2rem; font-weight: 700;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  color: #fbbf24;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0 28px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 12px 12px 56px;
  margin: 0 0 10px;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  background: var(--wp--preset--color--fog);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 12px; top: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 14px;
}
.warn { color: #fb7185; font-size: 13px; }

.badge {
  display: inline-block; padding: 2px 8px; font-size: 11px;
  background: #2a1650; color: #fbbf24; letter-spacing: 0.06em;
  font-family: "Outfit", sans-serif; border-radius: 999px;
}

.site-footer {
  background: #0a0514; color: #b7a8d4; padding: 48px 20px 24px;
  font-size: 13px;
}
.footer-grid {
  max-width: 1120px; margin: 0 auto 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.site-footer a { color: #efe8ff; }
.site-footer a:hover { color: #22d3ee; }
.site-footer h2, .site-footer h3 {
  color: #fff; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-info {
  max-width: 1120px; margin: 0 auto; padding-top: 18px;
  border-top: 1px solid rgba(167,139,250,.18); color: #8b7aa8; font-size: 12px;
}
.site-info a { color: #a78bfa; }

.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: #0a0514; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,.4);
}
.sticky-cta .wp-block-button__link { width: 100%; }

.legal-box {
  font-size: 13px; color: #c4b5e0; border: 1px solid var(--wp--preset--color--line);
  padding: 18px; margin: 36px 0 12px; border-radius: 12px; background: #12081f;
}
.updated { font-size: 12px; color: #8b7aa8; }

.cta-band {
  background: linear-gradient(135deg, #2a1650, #140a22);
  color: #fff; padding: 36px 20px; margin: 48px -20px 0;
  text-align: center; border-radius: 16px;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #c4b5e0; max-width: 52ch; margin: 0 auto 18px; }

.entity { font-style: normal; }
figure { margin: 28px 0; }
figcaption { font-size: 12px; color: #8b7aa8; margin-top: 8px; }
.age-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #fbbf24; color: #fbbf24;
  font-family: "Outfit", sans-serif; font-size: 11px; letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 999px; margin-right: 8px;
}

.hub-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0 32px;
}
.hub-links a {
  display: block;
  padding: 14px 16px;
  background: var(--wp--preset--color--fog);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  color: #efe8ff;
}
.hub-links a:hover { border-color: #8b5cf6; color: #22d3ee; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .header-tools { display: flex; padding-left: 8px; }
  .header-tools .wp-block-button { display: none; }
  .menu-toggle { display: inline-block; }
  #site-navigation {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #1a0f2e; border-bottom: 1px solid var(--wp--preset--color--line);
    padding: 8px 16px 20px;
  }
  #site-navigation.is-open { display: block; }
  .primary-menu { flex-direction: column; }
  .sub-menu { position: static; box-shadow: none; border: 0; display: block; padding-left: 8px; background: transparent; }
  .split, .pros-cons, .footer-grid { grid-template-columns: 1fr; }
  .wp-block-cover.hero { min-height: 62vh; }
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  .primary-menu > li > a { padding: 12px 4px; font-size: 14px; letter-spacing: 0.04em; }
  .hero-inner { padding: 32px 16px 40px; }
  .site-main { padding: 0 16px 64px; }
  .bonus-table, .wp-block-table table { font-size: 13px; }
  .calc-row { grid-template-columns: 1fr; }
  .page-toc ol { columns: 1; }
  .page-toc { padding: 16px 18px; }
  .scn-row { flex-direction: column; gap: 2px; }
  .scn-v { text-align: left; }
  .title-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 981px) {
  .primary-menu > .menu-item-has-children > .sub-menu.mega {
    min-width: 420px;
    display: none;
    grid-template-columns: 1fr 1fr;
  }
  .primary-menu > .menu-item-has-children:hover > .sub-menu.mega,
  .primary-menu > .menu-item-has-children:focus-within > .sub-menu.mega {
    display: grid;
  }
}
