:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --hero-bg: #0b1221;
  --hero-card: rgba(255, 255, 255, 0.06);
  --hero-border: rgba(148, 163, 184, 0.2);
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #0ea5e9;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "PingFang TC", "Microsoft JhengHei", "PingFang SC", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 33, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  min-width: 48px;
  height: 36px;
  padding: 0 9px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 55%, #10b981 100%);
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  font-size: 12.5px;
  color: #ffffff;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-tag {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.2;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Hero Section */
.hero {
  background:
    radial-gradient(920px 440px at 18% -10%, rgba(37, 99, 235, 0.28), transparent 65%),
    radial-gradient(800px 400px at 85% 0%, rgba(16, 185, 129, 0.18), transparent 60%),
    linear-gradient(180deg, #0b1221 0%, #101b33 100%);
  color: #f8fafc;
  padding: 72px 0 80px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.hero-compact {
  padding: 48px 0 54px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: #ffffff;
}

.hero p.lead {
  font-size: clamp(15.5px, 1.8vw, 18px);
  color: #cbd5e1;
  margin: 0 0 28px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0369a1);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border-color: #bfdbfe;
}

.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.btn-dark {
  background: #0f172a;
  color: #ffffff;
}

.btn-dark:hover {
  background: #1e293b;
  color: #ffffff;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: #94a3b8;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.hero-panel {
  background: var(--hero-card);
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hero-panel-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7dd3fc;
  font-weight: 700;
  margin: 0 0 14px;
}

.portfolio-mini-list {
  display: grid;
  gap: 12px;
}

.portfolio-mini-item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.portfolio-mini-item strong {
  display: block;
  font-size: 14px;
  color: #f8fafc;
}

.portfolio-mini-item span {
  font-size: 12px;
  color: #94a3b8;
}

.price-pill {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 760px;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}

/* Group Profile & 4-Division Architecture */
.about-overview {
  background: linear-gradient(135deg, #0f172a 0%, #162447 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
}

.about-overview h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #ffffff;
}

.about-overview p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
}

.about-pillars {
  display: grid;
  gap: 10px;
}

.about-pillar {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.div-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-top: 4px solid var(--primary);
}

.div-card.div-2 { border-top-color: #0ea5e9; }
.div-card.div-3 { border-top-color: #10b981; }
.div-card.div-4 { border-top-color: #8b5cf6; }

.div-code {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.div-card.div-2 .div-code { color: #0284c7; background: #e0f2fe; }
.div-card.div-3 .div-code { color: #059669; background: #ecfdf5; }
.div-card.div-4 .div-code { color: #7c3aed; background: #f5f3ff; }

.div-card h3 {
  font-size: 18.5px;
  margin: 0 0 8px;
  color: var(--text);
}

.div-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.div-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Pricing & Offer Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

.badge-featured {
  position: absolute;
  top: -13px;
  right: 22px;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 20px;
  margin: 0;
  color: var(--text);
}

.price-block {
  margin: 14px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.price-amount {
  font-size: 34px;
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.03em;
}

.price-unit {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.price-sub {
  font-size: 13px;
  color: var(--emerald);
  font-weight: 700;
  margin-top: 4px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  font-size: 14.5px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 900;
}

/* Workflow Timeline */
.steps-bar {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-item strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 3px;
}

.step-item span {
  font-size: 13.5px;
  color: var(--muted);
}

/* Notice / Disclaimer Box */
.compliance-note {
  margin-top: 20px;
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13.5px;
  color: #92400e;
}

.info-note {
  margin-top: 20px;
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13.5px;
  color: #065f46;
}

/* Game Cards */
.game-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--line);
}

.mono-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

/* Legal Document Pages */
.legal-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.legal-card h2 {
  font-size: 22px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.legal-card h3 {
  font-size: 17px;
  margin: 20px 0 8px;
  color: var(--text);
}

.legal-card p,
.legal-card li {
  font-size: 15px;
  color: var(--text-secondary);
}

.legal-card ul {
  padding-left: 20px;
  margin: 10px 0;
}

.legal-card li {
  margin-bottom: 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.summary-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.summary-tile strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.summary-tile span {
  font-size: 13.5px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: #0b1221;
  color: #cbd5e1;
  padding: 56px 0 36px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 13.5px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: #94a3b8;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-header h3 {
  margin: 0;
  font-size: 19px;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-overview,
  .grid-2,
  .grid-3,
  .steps-bar,
  .summary-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 24px 20px;
  }
}
