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

:root {
  --primary: #5B7FFF;
  --primary-dark: #4A6AE0;
  --primary-light: #EEF2FF;
  --accent: #FF6B9D;
  --bg: #F9F7F4;
  --bg-warm: #F5F2ED;
  --text: #1a1a1a;
  --text-light: #6b6b6b;
  --text-muted: #b0b0b0;
  --white: #ffffff;
  --border: #e8e4df;
  --shadow: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 20px;
  --bubble-left: #f0f0f0;
  --bubble-right: #5B7FFF;
  --bubble-right-text: #ffffff;
  --book-bg: #FFFDF8;
}

body {
  font-family: 'Noto Sans JP', 'Noto Color Emoji', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--text);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 13px 38px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-outline:hover {
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-ghost:hover { color: var(--text); }

.btn-ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-ghost-light:hover { color: #fff; }

.btn-lg {
  padding: 18px 48px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* ===== SECTIONS ===== */
.section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  margin-bottom: 52px;
  letter-spacing: -0.5px;
  line-height: 1.4;
}

/* ===========================
   LANDING PAGE — NEW DESIGN
   =========================== */

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--white);
  color: var(--text);
  overflow: hidden;
  padding: 0 24px;
}

.hero-nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon { font-size: 24px; }

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--text); }

/* Hero Split Layout */
.hero-split {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 100px;
  min-height: calc(100vh - 100px);
}

.hero-text {
  position: relative;
}

.hero-overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: var(--text);
}

.hero-accent {
  background: linear-gradient(135deg, #FF6B9D, #FF8A65);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-privacy {
  font-size: 12px;
  color: var(--text-muted);
}

/* Hero 3D Book */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-3d {
  perspective: 800px;
}

.book-3d-wrapper {
  transform: rotateY(-18deg) rotateX(3deg);
  transform-style: preserve-3d;
  animation: bookFloat 4s ease-in-out infinite;
}

.book-3d-wrapper:hover {
  animation-play-state: paused;
  transform: rotateY(-8deg) rotateX(1deg);
}

.book-3d-front {
  width: 280px;
  height: 400px;
  background: var(--white);
  border-radius: 2px 12px 12px 2px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    4px 4px 0 #f0ece7,
    8px 8px 0 #e8e4df,
    12px 12px 0 #e0dcd7,
    16px 16px 40px rgba(0,0,0,0.15);
  border-left: 4px solid #d5d0c9;
  position: relative;
}

.book-3d-front::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 2px 8px 8px 2px;
  pointer-events: none;
}

.book-3d-photo-area {
  width: 180px;
  height: 140px;
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.book-3d-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0e6da, #e8ddd0, #dfd4c6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.book-3d-photo-placeholder::after {
  content: '♥';
  font-size: 32px;
  color: rgba(0,0,0,0.08);
}

.book-3d-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.book-3d-date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 3px;
}

/* ===== HERO BEFORE/AFTER ===== */
.hero-transform {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.hero-arrow {
  font-size: 28px;
  color: var(--text-muted);
  animation: arrowPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* Mini Phone Mockup */
.hero-phone {
  width: 160px;
  height: 300px;
  background: #1a1a1a;
  border-radius: 24px;
  padding: 8px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.hero-phone-notch {
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 100px;
  margin: 4px auto 6px;
}

.hero-phone-screen {
  background: #E8EEF4;
  border-radius: 16px;
  height: calc(100% - 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-phone-header {
  background: #5B7FFF;
  color: #fff;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  padding: 6px;
}

.hero-phone-chat {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.hp-msg {
  display: flex;
}

.hp-msg span {
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 8px;
  line-height: 1.4;
  max-width: 85%;
}

.hp-left { justify-content: flex-start; }
.hp-left span { background: #fff; color: #000; border-bottom-left-radius: 3px; }

.hp-right { justify-content: flex-end; }
.hp-right span { background: #B7D5EB; color: #000; border-bottom-right-radius: 3px; }

/* ===== TRUST BAR ===== */
.trust-bar {
  padding: 36px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.trust-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.trust-item { text-align: center; }

.trust-num {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.trust-label {
  font-size: 11px;
  color: var(--text-light);
}

.trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ===== PRODUCT SHOWCASE — Open Book ===== */
.product-showcase {
  padding: 100px 24px;
  background: var(--white);
}

.showcase-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.showcase-visual {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  justify-content: center;
}

/* Open Book */
.open-book {
  display: flex;
  background: var(--white);
  border-radius: 4px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  max-width: 640px;
}

.open-book-left,
.open-book-right {
  width: 300px;
  background: #D0DAE4;
  padding: 20px 14px;
  min-height: 360px;
}

.open-book-left {
  border-right: none;
}

.open-book-right {
  border-left: none;
}

.open-book-spine {
  width: 6px;
  background: linear-gradient(90deg, #c8c3bc, #d8d3cc, #c8c3bc);
  flex-shrink: 0;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
}

/* Open Book Chat Elements */
.ob-date {
  text-align: center;
  font-size: 9px;
  color: rgba(0,0,0,0.35);
  margin-bottom: 10px;
}

.ob-date span {
  background: rgba(0,0,0,0.06);
  padding: 2px 10px;
  border-radius: 100px;
}

.ob-row {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-bottom: 4px;
}

.ob-row.left { justify-content: flex-start; }
.ob-row.right { justify-content: flex-end; }

.ob-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ob-a { background: #E8F8EE; color: #05a648; }
.ob-b { background: #EDE8FF; color: #6B5CE7; }

.ob-bubble {
  padding: 7px 11px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.5;
  max-width: 75%;
}

.ob-white {
  background: #fff;
  color: #000;
  border-bottom-left-radius: 3px;
}

.ob-green {
  background: #B7D5EB;
  color: #000;
  border-bottom-right-radius: 3px;
}

.ob-sticker {
  padding: 8px 14px;
  background: rgba(255,255,255,0.6);
  border-radius: 14px;
  font-size: 10px;
  color: rgba(0,0,0,0.5);
  border-bottom-left-radius: 3px;
}

.ob-photo {
  width: 80px;
  height: 60px;
  background: rgba(255,255,255,0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-bottom-left-radius: 3px;
}

/* Open Book 2-column layout */
.ob-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  height: 100%;
}

.ob-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Make bubbles smaller in 2-col */
.ob-2col .ob-bubble {
  padding: 4px 7px;
  font-size: 8px;
  border-radius: 10px;
  line-height: 1.3;
}

.ob-2col .ob-avatar {
  width: 14px;
  height: 14px;
  font-size: 6px;
}

.ob-2col .ob-row {
  gap: 3px;
  margin-bottom: 2px;
}

.ob-2col .ob-date {
  font-size: 7px;
  margin-bottom: 6px;
}

.ob-2col .ob-sticker {
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 8px;
}

.ob-page-num {
  font-size: 7px;
  color: rgba(0,0,0,0.2);
  margin-top: 8px;
}

/* Small Closed Book (beside open book) */
.showcase-closed-book {
  flex-shrink: 0;
}

.scb-front {
  width: 140px;
  height: 200px;
  background: var(--white);
  border-radius: 2px 8px 8px 2px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    3px 3px 0 #e8e4df,
    6px 6px 0 #e0dcd7,
    8px 8px 24px rgba(0,0,0,0.1);
  border-left: 3px solid #d5d0c9;
  text-align: center;
}

.scb-photo {
  width: 80px;
  height: 56px;
  background: linear-gradient(135deg, #f0e6da, #e8ddd0);
  border-radius: 4px;
  margin-bottom: 12px;
}

.scb-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.scb-date {
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Showcase Text */
.showcase-text {
  text-align: center;
  max-width: 600px;
}

.showcase-text h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.showcase-text p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.showcase-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.showcase-features li {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  background: var(--bg);
  border-radius: 100px;
}

.showcase-features li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

/* ===== RISK SECTION ===== */
.risk-section {
  padding: 100px 24px;
  background: var(--bg);
}

.risk-inner {
  max-width: 900px;
  margin: 0 auto;
}

.risk-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-top: -36px;
  margin-bottom: 48px;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.risk-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
}

.risk-card-solution {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

.risk-card-solution h3 { color: var(--white); }
.risk-card-solution p { color: rgba(255,255,255,0.7); }

.risk-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.risk-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.risk-card p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== HOW IT WORKS — Horizontal ===== */
.how-it-works {
  padding: 100px 24px;
  background: var(--white);
}

.steps-horizontal {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
}

.step-h {
  flex: 1;
  text-align: center;
  max-width: 260px;
}

.step-h-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.step-h-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.step-h h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-h p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.step-h-arrow {
  font-size: 24px;
  color: var(--text-muted);
  margin-top: 36px;
  flex-shrink: 0;
}

.steps-cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.steps-cta-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: transform 0.3s;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.8;
}

/* ===== USE CASES ===== */
.use-cases {
  padding: 100px 24px;
  background: var(--bg);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.case-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border-radius: var(--radius);
  transition: transform 0.3s;
}

.case-card:hover { transform: translateY(-2px); }

.case-emoji {
  font-size: 40px;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 700;
}

.case-card p {
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.7;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 700px;
  margin: 0 auto;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--text);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.price-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.price-amount {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 24px;
}

.yen {
  font-size: 20px;
  vertical-align: top;
  margin-right: 2px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

.price-features li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

/* ===== REVIEWS ===== */
.reviews {
  padding: 100px 24px;
  background: var(--bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.review-stars {
  color: #F5A623;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.review-detail {
  font-size: 11px;
  color: var(--text-muted);
}

.review-use-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 12px;
  background: var(--bg);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 24px;
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.faq-q {
  padding: 20px 0;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  padding-right: 40px;
}

.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 20px;
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.8;
  transition: max-height 0.3s, padding 0.3s;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 20px;
}

/* ===== GIFT SECTION ===== */
.gift-section {
  padding: 80px 24px;
  background: var(--white);
}

.gift-inner {
  max-width: 700px;
  margin: 0 auto;
}

.gift-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-top: -36px;
  margin-bottom: 40px;
}

.gift-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gift-feat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg);
  border-radius: 16px;
}

.gift-feat span {
  font-size: 28px;
  flex-shrink: 0;
}

.gift-feat strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.gift-feat p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 100px 24px;
  background: var(--text);
  color: var(--white);
  text-align: center;
}

.final-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.4;
  color: var(--white);
}

.final-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.final-cta .btn-primary {
  background: var(--white);
  color: var(--text);
}

.final-cta .btn-primary:hover {
  background: #f0f0f0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  color: var(--text-light);
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-brand { margin-bottom: 20px; }
.footer-brand p { font-size: 13px; margin-top: 8px; color: var(--text-muted); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
}

.footer-copy { font-size: 11px; color: var(--text-muted); }


/* =============================
   APP PAGES (Upload/Customize/Preview)
   ============================= */

.app-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-nav-steps {
  display: flex;
  gap: 4px;
}

.nav-step {
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
}

.nav-step.active {
  background: var(--text);
  color: white;
}

.nav-step.done {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Mobile progress bar (hidden on desktop, shown on mobile via media query) */
.app-nav-mobile {
  display: none;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.app-nav-mobile-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.app-nav-mobile-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.app-nav-mobile-fill {
  height: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Upload */
.app-step {
  max-width: 700px;
  margin: 48px auto;
  padding: 0 24px;
}

.upload-area {
  border: 1.5px dashed var(--text-muted);
  border-radius: var(--radius);
  padding: 72px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--white);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--text);
  background: var(--bg);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.upload-area h2 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.upload-area > p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 13px;
}

.upload-help {
  margin-top: 24px;
  text-align: left;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.upload-help summary {
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.upload-help ol {
  margin-top: 12px;
  padding-left: 20px;
  font-size: 12px;
  color: var(--text-light);
}

.upload-help li { margin-bottom: 4px; }

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 24px 0;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  border-radius: 2px;
  transition: width 0.5s;
}

.progress-text {
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

/* Customize */
#step-customize { max-width: 1000px; }

.customize-panel {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}

.customize-section {
  margin-bottom: 28px;
}

.customize-section h3 {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-range input, .text-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  width: 100%;
}

.date-range input:focus, .text-input:focus {
  outline: none;
  border-color: var(--text-muted);
}

.cover-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cover-option {
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.cover-option.selected { border-color: var(--text); }

.cover-preview {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  margin-bottom: 6px;
}

.cover-option span {
  font-size: 11px;
  color: var(--text-light);
}

/* Color Theme Picker */
.color-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.color-theme-option {
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
}

.color-theme-option.selected { border-color: var(--text); }
.color-theme-option:hover { border-color: var(--text-muted); }

.color-theme-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}

.color-theme-preview .ct-bubble-right {
  position: absolute;
  right: 4px;
  top: 8px;
  width: 55%;
  height: 10px;
  border-radius: 6px;
}

.color-theme-preview .ct-bubble-left {
  position: absolute;
  left: 4px;
  top: 24px;
  width: 45%;
  height: 10px;
  border-radius: 6px;
}

.color-theme-preview .ct-bubble-right2 {
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 40%;
  height: 10px;
  border-radius: 6px;
}

.color-theme-option span {
  font-size: 9px;
  color: var(--text-light);
  line-height: 1.2;
  display: block;
}

/* ===== CUSTOM COLOR PICKER ===== */
.custom-color-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custom-color-row label {
  font-size: 13px;
  font-weight: 500;
  min-width: 120px;
}

.color-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-input-group input[type="color"] {
  width: 40px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: #fff;
}

.btn-reset-color {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-reset-color:hover {
  border-color: var(--text-light);
  color: var(--text-light);
}

.custom-color-preview {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ccp-bg {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ccp-bubble {
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 12px;
  max-width: 70%;
}

.ccp-left {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ccp-right {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.mini-stats {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 70px;
}

.mini-stats h3 {
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 700;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.stat-item .stat-value {
  font-weight: 700;
  color: var(--primary-dark);
}

/* Preview */
#step-preview { max-width: 1100px; }

/* ===== zapptales-style Editor Layout ===== */
.zap-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 52px;
  z-index: 50;
}
.zap-topbar-left { display: flex; gap: 4px; align-items: center; }
.zap-topbar-right { display: flex; align-items: center; gap: 12px; }
.zap-topbar-logo { font-size: 18px; margin-right: 8px; }
.zap-tab {
  padding: 6px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.zap-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.zap-price { font-size: 15px; font-weight: 700; color: #7c5cfc; background: rgba(124,92,252,0.08); padding: 4px 12px; border-radius: 8px; }
.zap-order-btn {
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.zap-order-btn:hover { opacity: 0.9; }

.zap-editor {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 120px);
}

.zap-sidebar {
  background: #fafafa;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  position: sticky;
  top: 100px;
}

.zap-section {}
.zap-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  user-select: none;
}
.zap-section-header:hover { background: #f0f0f0; }
.zap-chevron { font-size: 10px; color: #999; transition: transform 0.2s; }
.zap-section.collapsed .zap-chevron { transform: rotate(-90deg); }
.zap-section.collapsed .zap-section-body { display: none; }
.zap-section-body { padding: 12px 16px 16px; }

.zap-label { display: block; font-size: 11px; color: #888; margin-bottom: 4px; margin-top: 10px; }
.zap-label:first-child { margin-top: 0; }
.zap-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}
.zap-input:focus { outline: none; border-color: var(--primary); }

.zap-color-dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.zap-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
  box-sizing: border-box;
}
.zap-dot:hover { transform: scale(1.15); }
.zap-dot.active { box-shadow: 0 0 0 2px var(--primary); }

.zap-upload-area {
  padding: 16px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.zap-upload-area:hover { border-color: var(--primary); color: var(--primary); }

.zap-btn {
  display: block;
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.zap-btn:hover { opacity: 0.9; }
.zap-btn-sm {
  display: block;
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.zap-btn-sm:hover { border-color: var(--primary); color: var(--primary); }

.zap-bg-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 4px;
}
.zap-bg-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.zap-bg-item:hover { border-color: #aaa; transform: scale(1.05); }
.zap-bg-item.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }

.zap-color-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.zap-color-pick { display: flex; align-items: center; gap: 6px; }
.zap-color-pick input[type="color"] {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
}
.zap-color-label { font-size: 11px; color: #666; }

/* フォント選択 */
.zap-font-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.zap-font-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.zap-font-btn:hover { border-color: var(--primary); }
.zap-font-btn.active {
  border-color: var(--primary);
  background: rgba(99,102,241,0.08);
  font-weight: 700;
}

/* 右プレビューエリア */
.zap-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 8px;
  background: #f0ede8;
  min-height: 0;
}
.zap-page-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.zap-nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zap-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.zap-page-select {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
}
.zap-page-info { font-size: 12px; color: #666; }

/* Page thumbs inside zap sidebar */
.zap-sidebar .page-thumbs { margin-bottom: 0; }

.page-thumbs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-thumb {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-light);
}

.page-thumb:hover { background: #fff; }

.page-thumb.active {
  background: var(--text);
  color: white;
}

/* Book Viewer — Square (150×150mm = 1:1) */
.book-viewer {
  width: calc(100vh - 200px);
  max-width: min(100%, calc(100vh - 200px));
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* Book Cover — Square */
.book-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  height: 100%;
  aspect-ratio: 1 / 1;
  text-align: center;
  padding: 30px 20px;
  margin: 0;
  box-sizing: border-box;
}

/* 見開きプレビュー */
.book-viewer.spread-view {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.spread-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  height: 100%;
}
.spread-page {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.spread-page.spread-left {
  border-radius: 4px 0 0 4px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.spread-page.spread-right {
  border-radius: 0 4px 4px 0;
}
.spread-page.spread-empty {
  background: #f0ede8;
}
.spread-page .book-page.active {
  display: block;
  height: 100%;
}

/* Chat Page */
.book-page { display: none; }
.book-page.active { display: block; height: 100%; box-sizing: border-box; }

.page-date {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  margin: 20px 0 12px;
  position: relative;
}

.chat-bubble-row {
  display: flex;
  margin-bottom: 4px;
  align-items: flex-end;
  gap: 6px;
}

.chat-bubble-row.left { justify-content: flex-start; }
.chat-bubble-row.right { justify-content: flex-end; }

.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  font-weight: 600;
}

.chat-avatar.person-a { background: var(--primary-light); color: var(--primary-dark); }
.chat-avatar.person-b { background: #EDE8FF; color: #6B5CE7; }

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-bubble {
  max-width: 68%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble-row.left .chat-bubble {
  background: var(--bubble-left);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble-row.right .chat-bubble {
  background: var(--bubble-right);
  color: var(--bubble-right-text);
  border-bottom-right-radius: 4px;
}

.bubble-time {
  font-size: 9px;
  color: var(--text-muted);
  align-self: flex-end;
  flex-shrink: 0;
}

.chat-bubble-row.right .bubble-time { order: -1; }

.sticker-placeholder {
  background: var(--primary-light);
  border-radius: 14px;
  padding: 12px 16px;
  text-align: center;
  font-size: 24px;
  min-width: 70px;
}

.sticker-label {
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 2px;
}

.call-bubble {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  margin: 12px 0;
  padding: 6px;
  background: var(--bg);
  border-radius: 8px;
}

/* ===== STATS PAGES — Wedding Book Elegant Style ===== */

/* Base stats page */
.stats-page {
  text-align: center;
  padding: 28px 24px;
  margin: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Decorative corner ornaments */
.stats-page::before,
.stats-page::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-style: solid;
  border-color: rgba(180,155,110,0.25);
  pointer-events: none;
}
.stats-page::before {
  top: 14px; left: 14px;
  border-width: 1px 0 0 1px;
}
.stats-page::after {
  bottom: 14px; right: 14px;
  border-width: 0 1px 1px 0;
}

/* Color variants — warm elegant tones */
.stats-page.stats-cream { background: linear-gradient(170deg, #FFFDF8 0%, #FFF5E6 50%, #FDECD0 100%); }
.stats-page.stats-coral { background: linear-gradient(170deg, #FFF8F6 0%, #FFE8E5 50%, #FFDDD8 100%); }
.stats-page.stats-lavender { background: linear-gradient(170deg, #FAF8FF 0%, #EFE8FF 50%, #E4DAFF 100%); }
.stats-page.stats-mint { background: linear-gradient(170deg, #F8FFFC 0%, #E8FFF3 50%, #D8F5E8 100%); }
.stats-page.stats-rose { background: linear-gradient(170deg, #FFF5F8 0%, #FFE0E8 50%, #FFD0DC 100%); }
.stats-page.stats-gold { background: linear-gradient(170deg, #FDFAF3 0%, #F5ECCE 50%, #F0E4C8 100%); }
.stats-page.stats-dark { background: linear-gradient(170deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #f0ece4; }
.stats-page.stats-dark h2 { color: #ffd97a; }
.stats-page.stats-dark .stat-hero-num { color: #ffd97a; }
.stats-page.stats-dark .stat-hero-label { color: #ddd6c8; }
.stats-page.stats-dark .stat-row { background: rgba(255,255,255,0.10); border-color: rgba(255,215,122,0.18); }
.stats-page.stats-dark .stat-row-label { color: #d0c8b8; }
.stats-page.stats-dark .stat-row-value { color: #fff; }
.stats-page.stats-dark .stat-row-icon { color: #ffd97a; }
.stats-page.stats-dark .vs-label { color: #ddd6c8; }
.stats-page.stats-dark .vs-names span { color: #d0c8b8; }
.stats-page.stats-dark .vs-track { background: rgba(255,255,255,0.12); }
.stats-page.stats-dark .stats-ornament::before,
.stats-page.stats-dark .stats-ornament::after { border-color: #4a4a6e; }
.stats-page.stats-dark .stats-ornament-icon { color: #ffd97a; }
.stats-page.stats-dark .word-rank-row { color: #f0ece4; }
.stats-page.stats-dark .word-rank-count { color: #d0c8b8; }
.stats-page.stats-dark .couple-type-name { color: #ffd97a; }
.stats-page.stats-dark .couple-type-desc { color: #ddd6c8; }
.stats-page.stats-dark .couple-type-card { background: rgba(255,255,255,0.10); border-color: rgba(255,215,122,0.15); }
.stats-page.stats-dark .corner-ornament { border-color: #4a4a6e; }

/* Ornamental divider */
.stats-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 12px;
  width: 100%;
}
.stats-ornament::before,
.stats-ornament::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,155,110,0.4), transparent);
}
.stats-ornament-icon {
  font-size: 10px;
  color: #b49b6e;
  opacity: 0.6;
}

.stats-page h2 {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 2px;
  color: #3a3028;
}

/* Big hero number */
.stat-hero-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  color: #3a3028;
  letter-spacing: -1px;
}

.stat-hero-label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 10px;
  color: #9a8a72;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

/* Stat row — elegant card style */
.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(180,155,110,0.12);
  border-radius: 8px;
  margin-bottom: 5px;
  text-align: left;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
}

.stat-row-icon {
  font-size: 13px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.stat-row-content {
  flex: 1;
  min-width: 0;
}

.stat-row-label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 8px;
  color: #9a8a72;
  letter-spacing: 0.5px;
}

.stat-row-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 700;
  color: #3a3028;
}

/* VS comparison bar — refined */
.vs-bar {
  margin: 6px 0 3px;
  text-align: left;
  width: 100%;
  max-width: 280px;
}

.vs-label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 9px;
  color: #9a8a72;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.vs-bar-track {
  height: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(180,155,110,0.1);
  display: flex;
  overflow: hidden;
}

.vs-bar-fill-left {
  background: linear-gradient(90deg, #e8a0b4, #d4789a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  min-width: 32px;
  border-radius: 10px 0 0 10px;
  letter-spacing: 0.3px;
}

.vs-bar-fill-right {
  background: linear-gradient(90deg, #8ba4c8, #6b88b4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  min-width: 32px;
  border-radius: 0 10px 10px 0;
  letter-spacing: 0.3px;
}

.vs-names {
  display: flex;
  justify-content: space-between;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 8px;
  color: #9a8a72;
  margin-top: 3px;
}

/* Emoji ranking */
.emoji-ranking {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.emoji-item {
  text-align: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(180,155,110,0.1);
  border-radius: 10px;
  padding: 4px 4px;
  min-width: 36px;
}

.emoji-char { font-size: 18px; display: block; }
.emoji-count { font-size: 8px; color: #9a8a72; }
.emoji-rank { font-size: 7px; color: #b4a48c; }

/* Word cloud */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}

.word-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 100px;
  font-size: 10px;
  color: var(--text);
  font-weight: 500;
}

.word-tag:nth-child(1) { font-size: 14px; font-weight: 700; }
.word-tag:nth-child(2) { font-size: 12px; font-weight: 600; }
.word-tag:nth-child(3) { font-size: 11px; font-weight: 600; }

/* Word ranking (numbered list — book page) */
.word-ranking {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 240px;
  margin: 0 auto;
  width: 100%;
}
.word-rank-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(180,155,110,0.08);
  border-radius: 4px;
  font-size: 9px;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.word-rank-row:nth-child(-n+3) {
  background: rgba(255,255,255,0.7);
  border-color: rgba(180,155,110,0.18);
}
.word-rank-num {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-size: 9px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: #b49b6e;
}
.word-rank-word {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3a3028;
}
.word-rank-count {
  font-size: 7px;
  color: #9a8a72;
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
}

/* Hourly chart — elegant */
.hourly-chart {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 36px;
  margin: 6px 0 3px;
  padding: 0 4px;
}

.hourly-bar {
  flex: 1;
  background: rgba(180,155,110,0.25);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: height 0.3s;
}

.hourly-bar.peak {
  background: linear-gradient(180deg, #c8a66e, #b49b6e);
}

.hourly-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.hourly-labels span {
  font-size: 7px;
  color: #b4a48c;
  font-family: 'Cormorant Garamond', serif;
}

/* Couple type diagnosis — elegant card */
.couple-type-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(180,155,110,0.15);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
}

.couple-type-emoji {
  font-size: 32px;
  margin-bottom: 6px;
}

.couple-type-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  color: #3a3028;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.couple-type-desc {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 10px;
  color: #7a6a52;
  line-height: 1.7;
}

/* Book Nav */
.book-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.book-nav-btn {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text-light);
}

.book-nav-btn:hover {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

#page-indicator {
  font-size: 12px;
  color: var(--text-muted);
}

/* Preview Toolbar */

/* Delete Mode */
.delete-mode .chat-bubble-row {
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  border-radius: 8px;
}

.delete-mode .chat-bubble-row:hover {
  opacity: 0.7;
}

.delete-mode .chat-bubble-row.selected-for-delete {
  opacity: 0.4;
  background: rgba(255, 59, 48, 0.08);
  border-radius: 8px;
}

.delete-mode .chat-bubble-row.selected-for-delete::after {
  content: '✓';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #FF3B30;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.delete-mode-active {
  background: var(--text) !important;
  color: white !important;
}

/* Profile Image */
.profile-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-avatar-preview {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-input-row label {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}

.profile-input-row input[type="file"] {
  font-size: 11px;
  max-width: 140px;
}

/* Swap Toggle */
.swap-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swap-status {
  font-size: 12px;
  color: var(--text-light);
}


/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Stagger children animation */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* Hero entrance — special fade-in from the start */
.hero-text {
  animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-visual {
  animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bookFloat {
  0%, 100% { transform: rotateY(-18deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(-18deg) rotateX(3deg) translateY(-8px); }
}

/* ===== 2-COLUMN CHAT LAYOUT (1ページ = スマホ2画面分) ===== */
.chat-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 0;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.chat-2col .chat-col {
  padding: 6px 5px;
  min-height: auto;
  overflow: hidden;
}

.chat-2col .chat-col:first-child {
  border-right: 1px solid rgba(0,0,0,0.06);
}

.chat-2col .page-date {
  margin: 2px 0 1px;
  text-align: center;
}

.chat-2col .page-date span {
  font-size: 7px;
  padding: 1px 6px;
}

.chat-2col .chat-bubble-row {
  margin-bottom: 0;
  gap: 2px;
}

.chat-2col .chat-bubble-row img {
  max-height: 80px;
  object-fit: cover;
}

.chat-2col .chat-avatar {
  width: 14px;
  height: 14px;
  font-size: 7px;
}

.chat-2col .chat-bubble {
  max-width: 84%;
  padding: 2px 5px;
  border-radius: 8px;
  font-size: 8px;
  line-height: 1.25;
}

.chat-2col .bubble-time {
  font-size: 6px;
}

.chat-2col .sticker-placeholder {
  padding: 4px 8px;
  font-size: 14px;
  min-width: 30px;
  border-radius: 8px;
}

.chat-2col .sticker-label {
  font-size: 5px;
}

.chat-2col .call-bubble {
  font-size: 7px;
  padding: 2px;
  margin: 2px 0;
}

/* Page number */
.chat-page-num {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 7px;
  color: rgba(0,0,0,0.2);
}

/* ===== PRIVACY SECTION ===== */
.privacy-section {
  padding: 80px 24px;
  background: #f8f9fa;
}
.privacy-inner {
  max-width: 720px;
  margin: 0 auto;
}
.privacy-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.privacy-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.privacy-highlight strong {
  font-size: 15px;
  display: block;
  margin-bottom: 8px;
}
.privacy-highlight p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}
.privacy-list {
  list-style: none;
  padding: 0;
}
.privacy-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}
.privacy-list li strong {
  color: var(--text);
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
}

.floating-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.floating-cta .btn-primary {
  padding: 16px 40px;
  font-size: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 100px;
}

.floating-cta .btn-primary:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* ===== GUARANTEE BADGE ===== */
.guarantee-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 24px;
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
  border-radius: 12px;
}

.guarantee-badge span {
  font-size: 13px;
  color: #22543D;
  font-weight: 600;
}

/* Price page note */
.price-page-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -4px;
  margin-bottom: 16px;
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 40px;
}

.pricing-example {
  text-align: center;
  margin-top: 20px;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-light);
}

/* ===== HERO TARGET TAGS ===== */
.hero-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-target-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0,0,0,0.04);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== HERO PHONE DATE ===== */
.hp-date {
  text-align: center;
  font-size: 7px;
  color: rgba(0,0,0,0.3);
  margin: 4px 0 2px;
  padding: 1px 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 100px;
  display: inline-block;
  width: 100%;
}

/* ===== MONITOR SECTION ===== */
.monitor-section {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f5f7fa 100%);
}

.monitor-inner {
  max-width: 640px;
  margin: 0 auto;
}

.monitor-subtitle {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.8;
}

.monitor-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.monitor-benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.monitor-benefit span:first-child {
  font-size: 28px;
  flex-shrink: 0;
}

.monitor-benefit strong {
  display: block;
  margin-bottom: 2px;
}

.monitor-benefit p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Landing page */
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
    min-height: auto;
    text-align: center;
  }
  .hero-text { order: 1; }
  .hero-visual { order: 2; }
  .hero-cta { justify-content: center; }
  .hero-targets { justify-content: center; }

  .hero-transform { gap: 12px; }
  .hero-phone { width: 140px; height: 280px; border-radius: 18px; }
  .hero-arrow { font-size: 20px; }
  .book-3d-front {
    width: 180px;
    height: 260px;
    padding: 24px 18px;
  }
  .book-3d-photo-area {
    width: 120px;
    height: 80px;
  }
  .book-3d-title { font-size: 16px; }
  .book-3d-date { font-size: 9px; }

  .trust-bar-inner {
    flex-wrap: wrap;
    gap: 20px;
  }
  .trust-dot { display: none; }

  .showcase-visual {
    flex-direction: column;
    align-items: center;
  }
  .open-book { flex-direction: column; max-width: 300px; }
  .open-book-left, .open-book-right { width: 100%; min-height: 200px; }
  .open-book-spine { width: 100%; height: 4px; }
  .showcase-closed-book { display: none; }

  .risk-grid { grid-template-columns: 1fr 1fr; }

  .steps-horizontal { flex-direction: column; align-items: center; }
  .step-h-arrow { transform: rotate(90deg); margin: 0; }

  .features-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .final-cta h2 { font-size: 24px; }
  .nav-links { display: none; }

  .chat-2col .chat-bubble { font-size: 7px; padding: 2px 4px; }
  .chat-2col .chat-avatar { width: 12px; height: 12px; font-size: 6px; }
  .chat-2col .bubble-time { font-size: 5px; }

  /* App pages */
  .customize-panel { grid-template-columns: 1fr; }
  .cover-options { grid-template-columns: repeat(2, 1fr); }
  .color-theme-grid { grid-template-columns: repeat(4, 1fr); }

  /* ===== Mobile Editor Layout: PCと同一レンダリング + プレビュー上部固定 ===== */
  .zap-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .zap-editor {
    display: flex;
    flex-direction: column;
  }
  .zap-preview-area {
    order: -1;
    position: sticky;
    top: 40px;
    z-index: 50;
    min-height: auto;
    background: #f0ede8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 8px;
  }
  /* PCと同じ幅で内部レンダリング → zoomで視覚的に縮小（コンテンツ・ページ数はPC同一） */
  .book-viewer {
    width: 500px;
    max-width: 500px;
    zoom: 0.65;
    margin: 0 auto;
  }
  .zap-sidebar {
    order: 1;
    position: static;
    max-height: none;
    border-right: none;
    border-top: 1px solid #e0d8f0;
  }
  .zap-tab { display: none; }
}

@media (max-width: 480px) {
  .risk-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }

  /* Nav: hide individual step labels, show mobile progress bar instead */
  .app-nav-steps {
    display: none;
  }
  .app-nav-mobile {
    display: flex !important;
  }
}

/* ===== PRINT ===== */
.tap-hint {
  font-size: 7px;
  opacity: 0.6;
}

@media print {
  .tap-hint { display: none !important; }
}

/* ===== SUPPORTED PLATFORMS BADGES ===== */
.supported-platforms {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin: 12px 0 4px;
  flex-wrap: wrap;
  align-items: center;
}

.platform-badge {
  display: inline-block;
  padding: 2px 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
}

.platform-badge::after {
  content: '·';
  margin-left: 8px;
  color: var(--text-muted);
}

.platform-badge:last-child::after {
  display: none;
}

/* Export guide CTA button */
.btn-export-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 20px;
  background: none;
  border: 2px solid var(--text);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-export-guide:hover {
  background: var(--text);
  color: #fff;
}

/* ===== EXPORT GUIDE TABS ===== */
.export-guide-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.export-tab {
  padding: 6px 14px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

.export-tab:hover { background: var(--bg); color: var(--text); }
.export-tab.active { background: var(--text); color: #fff; }

.export-guide {
  text-align: left;
}

.export-guide ol {
  padding-left: 20px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-light);
}

.guide-format {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== CONVERSATION PICKER ===== */
.conv-picker-panel {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 24px;
}

.conv-picker-panel h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
}

.conv-list {
  max-height: 60vh;
  overflow-y: auto;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.conv-item:hover {
  background: var(--bg);
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.conv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.conv-info { flex: 1; min-width: 0; }

.conv-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-preview {
  font-size: 12px;
  color: var(--text-secondary, #666);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== EXPORT GUIDE MODAL ===== */
.guide-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}

.guide-modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.guide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  position: sticky;
  top: 0;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 1;
}

.guide-modal-header h3 {
  font-size: 18px;
  font-weight: 900;
}

.guide-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.guide-modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.guide-app-list {
  padding: 8px 24px 24px;
}

.guide-app-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.guide-app-item:hover {
  background: var(--bg);
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.guide-app-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-app-info {
  flex: 1;
  min-width: 0;
}

.guide-app-name {
  font-size: 14px;
  font-weight: 700;
}

.guide-app-format {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.guide-app-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

.guide-detail {
  padding: 0 24px 24px;
}

.guide-detail h4 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4px;
}

.guide-detail .guide-format {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.guide-detail ol {
  padding-left: 20px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-light);
}

.guide-detail .guide-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: #FFF8E1;
  border-radius: 10px;
  font-size: 12px;
  color: #8D6E00;
}

.guide-detail .guide-no-export {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--primary-light);
  border-radius: 10px;
  font-size: 12px;
  color: var(--primary-dark);
  line-height: 1.6;
}

.guide-back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 12px;
  font-family: inherit;
}

.guide-back-btn:hover {
  text-decoration: underline;
}

/* ===== モーダル ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }

.modal-card {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.modal-close:hover { color: #333; }

.modal-body { padding: 20px 24px; }
.modal-body.hidden { display: none; }

/* ページタイプ選択グリッド */
.page-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.page-type-option {
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.page-type-option:hover {
  border-color: var(--primary);
  background: #f8f9ff;
}
.page-type-icon { font-size: 32px; margin-bottom: 8px; }
.page-type-label { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.page-type-desc { font-size: 10px; color: #999; }

/* モーダルフォーム */
.modal-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  margin-top: 14px;
}
.modal-form label:first-child { margin-top: 0; }

.modal-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--primary); }

.modal-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.modal-textarea:focus { border-color: var(--primary); }

/* 画像アップロードエリア */
.image-upload-area {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #999;
  font-size: 13px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-upload-area:hover {
  border-color: var(--primary);
  background: #fafbff;
}
/* スタイルオプション */
.style-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.style-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #555;
}
.style-option input[type="radio"] { display: none; }
.style-option.selected {
  border-color: var(--primary);
  background: #f0f4ff;
  color: var(--primary);
  font-weight: 600;
}

.style-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.style-options-grid .style-option {
  flex-direction: column;
  padding: 8px;
  border-radius: 8px;
  font-size: 10px;
  text-align: center;
  gap: 4px;
}
.style-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  border-radius: 4px;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 2px;
}

.modal-preview {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}
.page-preview-inner {
  width: 100%;
  aspect-ratio: 1;
  max-height: 200px;
  overflow: hidden;
  position: relative;
}
.page-preview-inner .special-page,
.page-preview-inner .image-page {
  transform: scale(0.45);
  transform-origin: top left;
  width: 222%;
  height: 222%;
}
/* backward compat alias */
.chapter-preview-inner {
  width: 100%;
  aspect-ratio: 1;
  max-height: 200px;
  overflow: hidden;
}
.chapter-preview-inner .special-page {
  transform: scale(0.45);
  transform-origin: top left;
  width: 222%;
  height: 222%;
}

.zap-ranking-words {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px;
  background: #fafafa;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* ===== サムネイル ＋ ボタン ===== */
.thumb-add-btn {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #ccc;
  cursor: pointer;
  padding: 2px 0;
  transition: all 0.2s;
  line-height: 1;
  user-select: none;
  border-radius: 4px;
}
.thumb-add-btn:hover {
  color: var(--primary);
  background: #f0f4ff;
}

.custom-page-thumb {
  position: relative;
  background: #f8f5ff !important;
  border-left: 3px solid var(--primary) !important;
}
.thumb-actions {
  display: flex;
  gap: 4px;
  padding: 2px 0 6px;
}
.thumb-action-btn {
  flex: 1;
  font-size: 11px;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.thumb-action-btn:hover { background: #eee; }
.thumb-action-delete {
  flex: 0;
  color: #e55;
  border-color: #fcc;
  background: #fff5f5;
}
.thumb-action-delete:hover { background: #fee; }

/* === プレビュー上のフローティング編集ボタン === */
.preview-edit-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}
.preview-edit-btn {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #7c5cfc;
  background: #fff;
  color: #7c5cfc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.preview-edit-btn:hover {
  background: #7c5cfc;
  color: #fff;
}
.preview-edit-btn:active {
  transform: scale(0.96);
}
.preview-edit-btn-danger {
  border-color: #e55;
  color: #e55;
}
.preview-edit-btn-danger:hover {
  background: #e55;
  color: #fff;
}

/* ===== 統計ページ個別カラードット ===== */
.stats-perpage-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 0 2px;
}
.stats-pp-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.1);
  transition: all 0.15s;
  flex-shrink: 0;
}
.stats-pp-dot:hover {
  transform: scale(1.15);
  border-color: rgba(0,0,0,0.3);
}
.stats-pp-dot.active {
  border-color: #7c5cfc;
  box-shadow: 0 0 0 2px #7c5cfc;
  transform: scale(1.1);
}

/* ===== 特殊ページ共通 ===== */
.special-page {
  width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}

/* チャプターページ */
.chapter-page {
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

/* 画像ページ */
.image-page img {
  display: block;
}

/* 手紙ページ */
.letter-page {
  font-feature-settings: 'palt';
}

/* ===== TALK READER (Step 2) ===== */

.reader-container {
  max-width: 480px;
  margin: 0 auto;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: #E8EEF4;
}

.reader-header {
  background: #fff;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  text-align: center;
  flex-shrink: 0;
}

.reader-header-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.reader-header-meta {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.reader-chat {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  scroll-behavior: smooth;
}

.reader-date {
  text-align: center;
  font-size: 11px;
  color: #8899aa;
  margin: 20px 0 12px;
  font-weight: 500;
}

.reader-date:first-child {
  margin-top: 4px;
}

.reader-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 4px;
  max-width: 85%;
}

.reader-msg-right {
  flex-direction: row-reverse;
  margin-left: auto;
}

.reader-msg-left {
  margin-right: auto;
}

.reader-msg-cont .reader-avatar {
  visibility: hidden;
}

.reader-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c8d6e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.reader-msg-right .reader-avatar {
  background: #a8c0d8;
}

.reader-bubble {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
}

.reader-msg-left .reader-bubble {
  background: #fff;
  border-bottom-left-radius: 4px;
  color: #1a1a1a;
}

.reader-msg-right .reader-bubble {
  background: #B7D5EB;
  border-bottom-right-radius: 4px;
  color: #1a1a1a;
}

.reader-name {
  font-size: 11px;
  color: #888;
  margin-bottom: 2px;
  font-weight: 500;
}

.reader-time {
  font-size: 9px;
  color: #aaa;
  margin-top: 2px;
  text-align: right;
}

.reader-sticker {
  font-size: 28px;
  display: block;
  text-align: center;
}

.reader-photo, .reader-call {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

.reader-footer {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.reader-next-btn {
  width: 100%;
  max-width: 320px;
}

.reader-footer-hint {
  font-size: 11px;
  color: #999;
  margin-top: 8px;
}

/* ===== STATS REVEAL (Step 3) ===== */

.stats-reveal-container {
  max-width: 480px;
  margin: 0 auto;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #1a1a2e, #16213e);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Scene containers */
.sr-scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  min-height: 0;
  overflow-y: auto;
}

.sr-animate-in {
  animation: srFadeIn 0.6s ease-out;
}

@keyframes srFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sr-overline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

/* Scene 1: Big number */
.sr-big-number {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #B7D5EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-big-label {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* Scene 2: Grid cards */
.sr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 360px;
}

.sr-card {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.06);
}

.sr-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.sr-card-value {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
}

.sr-card-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* Scene 3: VS + Words */
.sr-vs {
  width: 100%;
  max-width: 360px;
  margin-top: 16px;
}

.sr-vs-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sr-vs-name {
  font-size: 13px;
  font-weight: 600;
  width: 60px;
  text-align: right;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-vs-bar-wrap {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.sr-vs-bar {
  height: 100%;
  border-radius: 12px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sr-vs-bar-left {
  background: linear-gradient(90deg, #B7D5EB, #8BB8D4);
}

.sr-vs-bar-right {
  background: linear-gradient(90deg, #FFB0B6, #FF8A93);
}

.sr-vs-pct {
  font-size: 15px;
  font-weight: 700;
  width: 45px;
  text-align: left;
  flex-shrink: 0;
}

.sr-words {
  width: 100%;
  max-width: 360px;
}

/* Word ranking (stats-reveal) */
.sr-word-cloud {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  margin-bottom: 16px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.sr-word-rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
}

.sr-word-rank-num {
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  font-size: 13px;
}

.sr-word-rank-word {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-word-rank-count {
  font-size: 11px;
  opacity: 0.5;
  flex-shrink: 0;
}

.sr-word-rank-row.sr-word-custom {
  background: rgba(120,180,255,0.15);
  border: 1px solid rgba(120,180,255,0.3);
}

/* Edit ranking button */
.sr-edit-ranking-btn {
  margin-top: 4px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.sr-edit-ranking-btn:hover {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}

/* Ranking editor panel */
.sr-ranking-editor {
  margin-top: 12px;
  width: 100%;
  max-width: 360px;
}
.sr-ranking-editor-inner {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
}
.sr-deletable-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sr-deletable-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
}
.sr-deletable-tag:hover {
  background: rgba(255,80,80,0.2);
  color: #ff6b6b;
}
.sr-deletable-tag.sr-tag-removed {
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.25);
  text-decoration: line-through;
}
.sr-deletable-tag.sr-tag-removed:hover {
  background: rgba(100,200,100,0.15);
  color: #8bc98b;
  text-decoration: none;
}

/* Scene 4: Couple type + Emotions */
.sr-couple-type {
  margin-bottom: 32px;
}

.sr-couple-emoji {
  font-size: 56px;
  margin-bottom: 12px;
}

.sr-couple-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.sr-couple-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 320px;
}

.sr-emotion-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.sr-emotion-card {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  min-width: 100px;
  border: 1px solid rgba(255,255,255,0.06);
}

.sr-emotion-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.sr-emotion-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.sr-emotion-count {
  font-size: 20px;
  font-weight: 700;
}

/* ===== レイアウトエディタ ===== */
.layout-editor-wrap {
  background: #fff;
  border-radius: 12px;
  width: 90vw;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.layout-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
}
.layout-editor-hint {
  font-size: 11px;
  color: #999;
  margin-bottom: 12px;
}
.layout-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 3px dashed #8B9AD4;
  box-shadow: 0 0 0 12px #e8e5e0, 0 0 20px rgba(0,0,0,0.08);
  touch-action: none;
  user-select: none;
  margin: 16px auto 8px;
}
/* ページ枠ラベル */
.layout-canvas::after {
  content: 'ここまでがページ枠';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #8B9AD4;
  background: rgba(255,255,255,0.85);
  padding: 2px 10px;
  border-radius: 4px;
  z-index: 1000;
  pointer-events: none;
  letter-spacing: 1px;
}
.layout-el {
  position: absolute;
  cursor: grab;
  border: 2px dashed transparent;
  border-radius: 6px;
  padding: 6px 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
  z-index: 1;
}
.layout-el:hover {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.layout-el.dragging {
  cursor: grabbing;
  border-color: #6366f1;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  z-index: 10;
  opacity: 0.9;
}
.layout-el-label {
  position: absolute;
  top: -18px;
  left: 0;
  font-size: 9px;
  color: #6366f1;
  background: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.layout-el:hover .layout-el-label,
.layout-el.dragging .layout-el-label,
.layout-el.selected .layout-el-label {
  opacity: 1;
}
.layout-el.selected {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.layout-el .layout-el-delete {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e55;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  display: none;
  z-index: 5;
}
.layout-el.selected .layout-el-delete { display: block; }
.layout-editor-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
}
.layout-tool-btn {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid #c5b8e8;
  border-radius: 8px;
  background: #f5f0ff;
  color: #6366f1;
  cursor: pointer;
  font-weight: 500;
}
.layout-tool-btn:hover { background: #ece5ff; }
.layout-tool-sep {
  width: 1px;
  height: 20px;
  background: #ddd;
  margin: 0 4px;
}

/* Scene Final: CTA */
.sr-final-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.sr-final-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 12px;
}

.sr-final-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 32px;
}

.sr-final-btn {
  width: 100%;
  max-width: 320px;
}

.sr-final-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
}

/* Scene Navigation */
.sr-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  flex-shrink: 0;
}

.sr-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sr-nav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.15);
}

.sr-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sr-nav-dots {
  display: flex;
  gap: 8px;
}

.sr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.sr-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Custom word input */
.sr-add-word {
  margin-top: 16px;
  width: 100%;
  max-width: 360px;
}

.sr-add-word-row {
  display: flex;
  gap: 8px;
}

.sr-add-word-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.sr-add-word-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.sr-add-word-input:focus {
  border-color: rgba(255,255,255,0.4);
}

.sr-add-word-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.sr-add-word-btn:hover {
  background: rgba(255,255,255,0.25);
}

.sr-custom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sr-custom-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.sr-custom-tag-x {
  cursor: pointer;
  opacity: 0.5;
  margin-left: 2px;
}

.sr-custom-tag-x:hover {
  opacity: 1;
}
