/*
Theme Name: GGPL Tokyo
Theme URI: https://ggpl.tokyo/
Author: GGPL Tokyo Editorial
Author URI: https://ggpl.tokyo/about-us/
Description: Independent review theme for GoodGame Poker Live (GGPL) amusement poker rooms in Japan. Not the official GGPL website.
Version: 1.4.2
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: ggpl-tokyo
Tags: poker, japan, two-columns, custom-menu, featured-images, translation-ready
*/

:root {
  --wp--preset--color--base: #ffffff;
  --wp--preset--color--contrast: #111111;
  --wp--preset--color--primary: #e4007f;
  --wp--preset--color--primary-hover: #ff4db8;
  --wp--preset--color--ink: #1a1a1a;
  --wp--preset--color--muted: #5c5c5c;
  --wp--preset--color--line: #e8e8e8;
  --wp--preset--color--fog: #f6f6f6;
  --wp--preset--color--dark: #0d0d0d;
  --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.ggpl-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--primary); text-decoration: none; }
a:hover { color: var(--wp--preset--color--primary-hover); }
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.25;
  color: var(--wp--preset--color--contrast);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 1.6em 0 0.6em; }
h3 { font-size: 1.15rem; 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: #111; color: #fff; padding: 8px 14px;
}

/* Disclaimer + age bar */
.site-disclaimer {
  background: #111;
  color: #d0d0d0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}
.site-disclaimer strong { color: #fff; font-weight: 600; }
.site-disclaimer a { color: #ff8cc8; }

/* Header: official-inspired white bar + grid */
#masthead.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  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, 220px) 1fr auto;
  align-items: center;
  padding: 0 20px;
  position: relative;
}
.header-inner::before,
.header-inner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 1px;
  background: var(--wp--preset--color--line);
}
.header-inner::before { left: 220px; }
.header-inner::after { right: 280px; }

.custom-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
}
.custom-logo-link svg { height: 32px; width: auto; display: block; }
.custom-logo-link img.custom-logo { height: 32px; width: auto; max-width: 200px; 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: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-menu > li > a {
  display: block;
  padding: 10px 10px;
  color: #666;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a { color: #111; }
.menu-item-has-children { position: relative; }
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 20;
}
.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: #333;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.sub-menu a:hover { background: var(--wp--preset--color--fog); color: var(--wp--preset--color--primary); }

.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: #999; padding: 4px 6px; }
.lang-switch a.is-active { color: #111; border-bottom: 2px solid var(--wp--preset--color--primary); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #ddd;
  width: 44px; height: 44px;
  border-radius: 4px;
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: #111; margin: 4px auto;
}

/* Hero */
.wp-block-cover.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background: #111 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(0,0,0,.15) 0%, rgba(13,13,13,.78) 70%, #0d0d0d 100%);
  z-index: 0;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: calc(100% / 4) 100%;
}
.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: #ff8cc8; margin-bottom: 12px;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #e8e8e8; max-width: 46ch; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Buttons: WP block */
.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: var(--wp--preset--color--primary);
  color: #fff !important;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 14px 22px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.wp-block-button__link:hover,
.cta-btn:hover { background: #c1006c; 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,.55);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.08); }
.cta-btn.cta-ghost {
  background: transparent;
  color: var(--wp--preset--color--ink) !important;
  border: 1px solid #111;
}
.entry-content .cta-ghost { color: #111 !important; }

#content.site-content { background: #fff; }
.site-main { max-width: 1120px; margin: 0 auto; padding: 0 20px 80px; }
.entry-header.page-header {
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--wp--preset--color--line);
  margin-bottom: 28px;
}
.entry-content { max-width: 760px; }
.entry-content.wide,
.alignwide { max-width: 1120px; }

.breadcrumbs {
  font-size: 12px; color: #888; margin: 16px 0 0;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}
.breadcrumbs a { color: #666; }
.breadcrumbs span { color: #111; }

/* Cards / store grid */
.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: #fff;
  border: 1px solid var(--wp--preset--color--line);
  overflow: hidden;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.store-card:hover, .info-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  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--primary);
}
.store-card h3 { margin: 4px 0 6px; font-size: 1.2rem; }
.store-card p { font-size: 13px; color: #555; margin: 0; }

.info-card { padding: 0; }
.info-card .body { padding: 22px; }
.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: 1px solid var(--wp--preset--color--line); }

/* Tables */
.wp-block-table, .bonus-table-wrap {
  overflow-x: auto;
  margin: 20px 0 32px;
  border: 1px solid var(--wp--preset--color--line);
}
.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: #111; color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 600; font-size: 12px; letter-spacing: 0.08em;
}
.bonus-table tr:nth-child(even) td { background: var(--wp--preset--color--fog); }
.note, .wp-block-verse {
  font-size: 13px; color: #666; background: var(--wp--preset--color--fog);
  padding: 14px 16px; border-left: 3px solid var(--wp--preset--color--primary);
  margin: 18px 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); }
.pros h3 { color: #0a7a4b; margin-top: 0; }
.cons h3 { color: #b42318; margin-top: 0; }
.pros li, .cons li { margin: 6px 0; }

/* FAQ */
.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: #999;
}
.faq-item.is-open dt::after, .faq-item.is-open .faq-q::after { content: "?"; }
.faq-item dd, .faq-a { display: none; margin: 0 0 16px; color: #444; }
.faq-item.is-open dd, .faq-item.is-open .faq-a { display: block; }

/* Checklist + calculator */
.ui-panel {
  background: var(--wp--preset--color--fog);
  border: 1px solid var(--wp--preset--color--line);
  padding: 22px;
  margin: 24px 0 32px;
}
.ui-panel h3 { margin-top: 0; }
.check-list label {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px dashed #ddd; font-size: 14px; cursor: pointer;
}
.check-list input { margin-top: 4px; }
.calc-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; margin: 8px 0; }
.calc-row input, .calc-row select {
  width: 100%; padding: 8px 10px; border: 1px solid #ccc; font: inherit;
}
.calc-total {
  margin-top: 14px; font-size: 1.2rem; font-weight: 700;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}

.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);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 12px; top: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 14px;
}
.warn { color: #9b1c1c; font-size: 13px; }

/* Compare */
.compare-table td, .compare-table th { font-size: 13px; }
.badge {
  display: inline-block; padding: 2px 8px; font-size: 11px;
  background: #111; color: #fff; letter-spacing: 0.06em;
  font-family: "Outfit", sans-serif;
}

/* Footer */
.site-footer {
  background: #0d0d0d; color: #b8b8b8; 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: #eaeaea; }
.site-footer a:hover { color: var(--wp--preset--color--primary-hover); }
.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 #2a2a2a; color: #888; font-size: 12px;
}
.site-info a { color: #aaa; }

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: #111; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}
.sticky-cta .wp-block-button__link { width: 100%; }

.legal-box {
  font-size: 13px; color: #555; border: 1px solid var(--wp--preset--color--line);
  padding: 18px; margin: 36px 0 12px;
}
.updated { font-size: 12px; color: #888; }

.cta-band {
  background: #111; color: #fff; padding: 36px 20px; margin: 48px -20px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #ccc; max-width: 52ch; margin: 0 auto 18px; }

.entity { font-style: normal; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-inner::before, .header-inner::after { display: none; }
  .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: #fff; 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; }
  .split, .pros-cons, .footer-grid { grid-template-columns: 1fr; }
  .wp-block-cover.hero { min-height: 62vh; }
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
  .cta-band { margin-left: -20px; margin-right: -20px; }
}

@media (max-width: 600px) {
  .primary-menu > li > a { padding: 12px 4px; font-size: 13px; letter-spacing: 0.06em; }
  .hero-inner { padding: 32px 16px 40px; }
  .site-main { padding: 0 16px 64px; }
  .bonus-table, .wp-block-table table { font-size: 13px; }
}


/* Mega menu columns */
.primary-menu > .menu-item-has-children > .sub-menu.mega {
  min-width: 280px;
}
@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;
  }
}
.faq-item.is-open dt::after, .faq-item.is-open .faq-q::after { content: "\2212"; }
