:root {
  --c-paper: #FFF9F0;
  --c-ink: #2D221C;
  --c-ink-soft: #5C4A3E;
  --c-coral: #D9531E;        /* WCAG AA OK (contrast >= 4.6:1 on white/paper) */
  --c-coral-dark: #B83E10;   /* High Contrast Header & Link (contrast >= 6.5:1) */
  --c-strawberry: #E03E6D;
  --c-sky: #0B88C4;
  --c-mint: #0E9F78;
  --c-lemon: #F59E0B;
  --c-tangerine: #E66A00;
  --c-lavender: #7C3AED;
  --c-lilac: #D946EF;
  --c-pastel: #FFF0E2;
  --f-display: 'Nunito', sans-serif;
  --f-body: 'Zen Maru Gothic', 'Nunito', sans-serif;
  --t-base: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.25rem;
  --t-3xl: 3.5rem;
  --r-btn: 999px;
  --r-card: 28px;
  --r-card-sm: 20px;
  --r-icon: 18px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 200ms;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.theme-wonderland {
  background-color: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.relative {
  position: relative;
  z-index: 10;
}

a {
  color: var(--c-coral-dark);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--c-coral);
}

/* Background Elements */
.wonderland-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--c-pastel) 0%, var(--c-paper) 100%);
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  filter: blur(6px);
}
.cloud-1 { width: 50vw; height: 18vw; top: 3%; left: 8%; }
.cloud-2 { width: 38vw; height: 14vw; top: 12%; right: -5%; opacity: 0.85; }
.cloud-3 { width: 55vw; height: 20vw; top: 65%; left: -8%; opacity: 0.65; }

.dot {
  position: absolute;
  border-radius: 50%;
}
.dot-1 { width: 24px; height: 24px; background: rgba(217, 83, 30, 0.25); top: 25%; left: 12%; }
.dot-2 { width: 32px; height: 32px; background: rgba(11, 136, 196, 0.25); top: 55%; right: 8%; }
.dot-3 { width: 16px; height: 16px; background: rgba(245, 158, 11, 0.25); top: 78%; left: 25%; }
.dot-4 { width: 20px; height: 20px; background: rgba(124, 58, 237, 0.25); top: 42%; right: 22%; }

/* Header Navigation */
.site-header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 34, 28, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--c-coral-dark);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 1rem;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--c-coral-dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: var(--t-2xl);
  font-weight: 900;
  color: var(--c-coral-dark);
  margin-bottom: 12px;
}
.section-header p {
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--c-ink-soft);
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-content {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-lemon);
  color: var(--c-ink);
  font-weight: 900;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.hero-title {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 900;
  line-height: 1.1;
  color: var(--c-coral-dark);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(184, 62, 16, 0.15);
}
.hero-title-jp {
  font-size: var(--t-2xl);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--c-ink);
}
.hero-subtitle {
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--c-ink-soft);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Buttons */
.candy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  font-size: var(--t-lg);
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--c-coral-dark), var(--c-strawberry));
  border-radius: var(--r-btn);
  box-shadow: 0 8px 0 #9E2B08, 0 16px 24px rgba(184, 62, 16, 0.35), inset 0 3px 5px rgba(255, 255, 255, 0.4);
  transition: transform var(--d-fast) var(--ease-spring), box-shadow var(--d-fast) var(--ease-spring);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.candy-btn .icon {
  width: 26px;
  height: 26px;
}
.candy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 #9E2B08, 0 20px 28px rgba(184, 62, 16, 0.4), inset 0 3px 5px rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.candy-btn:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #9E2B08, 0 8px 12px rgba(184, 62, 16, 0.3), inset 0 3px 5px rgba(255, 255, 255, 0.4);
}
.btn-white {
  background: #ffffff;
  color: var(--c-ink);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15), 0 16px 24px rgba(0, 0, 0, 0.12), inset 0 -3px 5px rgba(0, 0, 0, 0.05);
}
.btn-white:hover {
  color: var(--c-ink);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.15), 0 20px 28px rgba(0, 0, 0, 0.15), inset 0 -3px 5px rgba(0, 0, 0, 0.05);
}

/* Device Mockup */
.hero-mockup-wrapper {
  margin-top: 48px;
  width: 100%;
  max-width: 760px;
  position: relative;
}
.ipad-frame {
  background: #181210;
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 24px 48px rgba(45, 34, 28, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}
.ipad-screen {
  border-radius: 24px;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}

/* Social Proof & Trust Cards */
.social-proof {
  padding: 48px 0;
  text-align: center;
}
.section-label {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--c-ink);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.clay-card-sm {
  background: #ffffff;
  border-radius: var(--r-card-sm);
  padding: 28px;
  text-align: left;
  box-shadow: 0 10px 20px rgba(45, 34, 28, 0.07), inset 0 2px 4px rgba(255, 255, 255, 0.9);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  border: 1px solid rgba(45, 34, 28, 0.08);
}
.clay-card-sm:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(45, 34, 28, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}
.clay-card-sm h3 {
  color: var(--c-ink);
}
.feature-card-icon {
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-card-icon .icon-svg {
  width: 32px;
  height: 32px;
}

/* Bento Grid Features */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 48px 0;
}
.clay-card {
  border-radius: var(--r-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  box-shadow: 0 14px 28px rgba(45, 34, 28, 0.12), inset 0 3px 6px rgba(255, 255, 255, 0.4), inset 0 -6px 12px rgba(0, 0, 0, 0.1);
}
.clay-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(45, 34, 28, 0.18), inset 0 3px 6px rgba(255, 255, 255, 0.4);
}
.card-coral { background: linear-gradient(135deg, var(--c-coral-dark), var(--c-strawberry)); }
.card-lemon { background: linear-gradient(135deg, var(--c-lemon), var(--c-tangerine)); color: var(--c-ink); }
.card-sky { background: linear-gradient(135deg, var(--c-sky), var(--c-mint)); }
.card-mint { background: linear-gradient(135deg, var(--c-mint), var(--c-sky)); }
.card-lavender { background: linear-gradient(135deg, var(--c-lavender), var(--c-lilac)); }

.bento-card h2, .bento-card h3 {
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
}
.bento-card h2 { font-size: var(--t-2xl); }
.bento-card h3 { font-size: var(--t-xl); }
.bento-card p {
  font-size: var(--t-base);
  font-weight: 700;
  opacity: 0.98;
  line-height: 1.6;
}
.bento-icon-wrapper {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--r-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.bento-icon-wrapper svg {
  width: 28px;
  height: 28px;
}
.card-lemon .bento-icon-wrapper {
  background: rgba(255, 255, 255, 0.6);
}

/* Character Content Grid */
.features-list {
  padding: 48px 0;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.char-card {
  background: #ffffff;
  border-radius: var(--r-card-sm);
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(45, 34, 28, 0.07);
  border: 1px solid rgba(45, 34, 28, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s var(--ease-spring);
}
.char-card:hover {
  transform: translateY(-4px);
}
.circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(45, 34, 28, 0.15), inset 0 3px 5px rgba(255, 255, 255, 0.4);
}
.bg-coral { background: var(--c-coral-dark); }
.bg-sky { background: var(--c-sky); }
.bg-mint { background: var(--c-mint); }
.bg-lemon { background: var(--c-lemon); color: var(--c-ink); }
.bg-lavender { background: var(--c-lavender); }
.bg-strawberry { background: var(--c-strawberry); }

.char-card h4 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--c-ink);
}
.char-badge {
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-pastel);
  color: var(--c-coral-dark);
  border: 1px solid rgba(184, 62, 16, 0.15);
}
.char-badge.free {
  background: #E6F8F3;
  color: #056B48;
  border: 1px solid rgba(14, 159, 120, 0.2);
}

/* Screenshot Gallery */
.gallery-section {
  padding: 48px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.gallery-card {
  background: #ffffff;
  border-radius: var(--r-card-sm);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(45, 34, 28, 0.08);
  border: 1px solid rgba(45, 34, 28, 0.08);
  transition: transform 0.3s var(--ease-spring);
}
.gallery-card:hover {
  transform: translateY(-6px);
}
.gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  padding: 16px 20px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--c-ink);
  text-align: center;
}

/* How It Works */
.how-it-works {
  padding: 48px 0;
}
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.step-card {
  position: relative;
  padding-top: 48px;
}
.step-num {
  position: absolute;
  top: -20px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--c-coral-dark);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(184, 62, 16, 0.4);
}
.step-card h3 {
  font-size: var(--t-xl);
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--c-ink);
}
.step-card p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ink-soft);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 48px 0;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #ffffff;
  border-radius: var(--r-card-sm);
  padding: 24px 28px;
  box-shadow: 0 8px 16px rgba(45, 34, 28, 0.06);
  border: 1px solid rgba(45, 34, 28, 0.08);
}
.faq-question {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--c-coral-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-answer {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.7;
}

/* Bottom CTA & Footer */
.bottom-cta {
  padding: 48px 0 80px;
}
.text-center {
  text-align: center;
  align-items: center;
}
.cta-card {
  padding: 56px 36px;
}
.cta-card h2 {
  margin-bottom: 14px;
}
.cta-card p {
  margin-bottom: 36px;
  font-size: var(--t-lg);
}

.site-footer {
  padding: 40px 0;
  font-weight: 700;
  color: var(--c-ink-soft);
  text-align: center;
  border-top: 1px solid rgba(45, 34, 28, 0.08);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.footer-links a {
  color: var(--c-ink-soft);
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--c-coral-dark);
  text-decoration: underline;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-spring);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .clay-card-sm:hover, .clay-card:hover, .char-card:hover {
    transform: none;
  }
}

/* Sub-page Specific Styles (Privacy, Terms, Law, Support) */
.page-header {
  padding: 60px 0 24px;
  text-align: center;
}
.page-title {
  font-size: var(--t-2xl);
  font-weight: 900;
  color: var(--c-coral-dark); /* High contrast contrast ratio > 6.5:1 */
}
.content-body {
  max-width: 840px;
  margin: 0 auto 80px;
  background: #ffffff;
  padding: 44px;
  border-radius: var(--r-card);
  box-shadow: 0 16px 36px rgba(45, 34, 28, 0.09), inset 0 2px 4px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 34, 28, 0.08);
}
.content-body h2 {
  font-size: var(--t-xl);
  margin-top: 36px;
  margin-bottom: 14px;
  font-weight: 900;
  color: var(--c-coral-dark);
  border-bottom: 2px dashed rgba(184, 62, 16, 0.35);
  padding-bottom: 8px;
}
.content-body p, .content-body ul, .content-body ol {
  margin-bottom: 16px;
  color: var(--c-ink);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.8;
}
.content-body ul, .content-body ol {
  padding-left: 24px;
}
.content-body li {
  margin-bottom: 8px;
}

.meta-date {
  margin-top: 36px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-ink-soft);
  border-top: 1px dashed rgba(45, 34, 28, 0.15);
  padding-top: 16px;
}

.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--c-pastel);
  color: var(--c-ink);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(184, 62, 16, 0.15);
  transition: all 0.2s var(--ease-spring);
  min-height: 44px;
}
.lang-btn:hover {
  background: #ffffff;
  border-color: var(--c-coral-dark);
  color: var(--c-coral-dark);
  transform: translateY(-2px);
}
.lang-btn.active {
  background: var(--c-coral-dark);
  color: #ffffff;
  border-color: var(--c-coral-dark);
  box-shadow: 0 6px 16px rgba(184, 62, 16, 0.35);
}

.law-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 24px;
  border-radius: var(--r-card-sm);
  overflow: hidden;
  border: 1px solid rgba(45, 34, 28, 0.15);
}
.law-table th, .law-table td {
  padding: 18px 22px;
  text-align: left;
  font-size: 1rem;
}
.law-table th {
  background: var(--c-pastel);
  color: var(--c-ink);
  font-weight: 900;
  width: 30%;
  border-bottom: 1px solid rgba(45, 34, 28, 0.1);
}
.law-table td {
  background: #ffffff;
  color: var(--c-ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(45, 34, 28, 0.1);
  line-height: 1.7;
}
.law-table tr:last-child th, .law-table tr:last-child td {
  border-bottom: none;
}

/* Media Queries */
@media (min-width: 768px) {
  .col-span-8 { grid-column: span 8; }
  .col-span-4 { grid-column: span 4; }
  .col-span-12 { grid-column: span 12; }
  .row-span-2 { grid-row: span 2; }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
@media (max-width: 767px) {
  .col-span-12, .col-span-4, .col-span-8 { grid-column: span 12 !important; }
  .row-span-2 { grid-row: span 1 !important; }
  .hero-title { font-size: 2.5rem; }
  .hero-title-jp { font-size: 1.5rem; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .content-body {
    padding: 24px 18px;
    border-radius: var(--r-card-sm);
  }
  .law-table th, .law-table td {
    display: block;
    width: 100%;
  }
  .law-table th {
    background: var(--c-pastel);
    padding-bottom: 8px;
  }
  .law-table td {
    padding-top: 8px;
    border-bottom: 1px dashed rgba(45, 34, 28, 0.15);
  }
}