/* ===================================================
   PatchWing – CSS（修正版）
   明るく・温かく・親しみやすい
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --primary: #6c63ff;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --primary-pale: #ede9fe;
  --accent: #f97316;
  --accent-pale: #fff7ed;
  --green: #10b981;
  --green-pale: #d1fae5;
  --pink: #ec4899;
  --pink-pale: #fce7f3;
  --yellow: #f59e0b;
  --yellow-pale: #fef3c7;

  /* BG & Surface */
  --bg: #fafbff;
  --bg2: #f3f4fd;
  --surface: #ffffff;
  --surface2: #f8f9fe;
  --border: #e8eaf6;
  --border-soft: #f0f0ff;

  /* Text */
  --text: #1e1b4b;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(108,99,255,0.08);
  --shadow: 0 4px 24px rgba(108,99,255,0.12);
  --shadow-lg: 0 8px 48px rgba(108,99,255,0.18);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.06);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font: 'Nunito', sans-serif;
  --font-code: 'Fira Code', monospace;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Utility ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  position: relative;
  display: inline-block;
  color: var(--primary);
}
.highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 10 Q50 2 100 10 Q150 18 198 10' fill='none' stroke='%23f97316' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  font-family: var(--font);
}
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(108,99,255,0.5);
}
.btn--primary:active { transform: translateY(0) scale(0.99); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary-pale);
  transform: translateY(-2px);
}

.btn--soft {
  background: var(--primary-pale);
  color: var(--primary);
  border: 2px solid transparent;
}
.btn--soft:hover {
  background: #ddd6fe;
  transform: translateY(-2px);
}

/* ---------- Section Header ---------- */
.section__header {
  text-align: center;
  margin-bottom: 48px;
}
.section__tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.25;
  color: var(--text);
}
.section__sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ===================================================
   HEADER / NAV
   =================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(108,99,255,0.1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.logo-text { color: var(--text); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__menu a {
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all var(--transition);
}
.nav__menu a:hover {
  color: var(--primary);
  background: var(--primary-pale);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: visible;
  padding: 140px 0 80px;
}

/* Blobs */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: blobFloat 10s ease-in-out infinite;
}
.blob--1 { width: 500px; height: 500px; background: #c7d2fe; top: -150px; left: -100px; animation-delay: 0s; }
.blob--2 { width: 400px; height: 400px; background: #fde68a; top: 200px; right: -100px; animation-delay: -4s; }
.blob--3 { width: 300px; height: 300px; background: #fce7f3; bottom: -80px; left: 20%; animation-delay: -7s; }
.blob--4 { width: 250px; height: 250px; background: #d1fae5; top: 50%; right: 20%; animation-delay: -2s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.04); }
  66% { transform: translate(-15px, 20px) scale(0.97); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__inner--centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero__content--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__content--centered .hero__cta {
  justify-content: center;
}
.hero__content--centered .hero__note {
  justify-content: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.6s ease both;
}
.badge__dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--green-pale);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--green-pale); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.15); }
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.85;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.hero__sub strong { color: var(--primary); }

.hero__note-sm {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 6px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  animation: fadeInUp 0.6s ease 0.4s both;
}
.hero__note i { color: var(--green); margin-right: 4px; }

/* Hero Visual (chat card wrapper) */
.hero__visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.4s both;
}

/* Hero Visual Full Width (below text) */
.hero__visual-full {
  margin-top: 48px;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hero__screenshot--large {
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero Price */
.hero__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.25s both;
}
.hero__price-amount {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #e03035;
  letter-spacing: -0.02em;
}
.hero__price-tax {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}
.hero__price-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fee2e2, #fff1f2);
  border: 1.5px solid #fecaca;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Hero note link / WIP */
.hero__note-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.hero__note-link:hover {
  color: var(--primary);
}
.hero__note-wip {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Chat Card */
.chat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  max-width: 380px;
  margin-left: auto;
}
.chat-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
  color: #fff;
}
.chat-card__avatar {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.chat-card__name { font-weight: 800; font-size: 0.95rem; }
.chat-card__online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  opacity: 0.9;
}
.online-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.chat-card__messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 15px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 600;
}
.chat-msg--ai {
  background: var(--bg2);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg--user {
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-code {
  background: #1e1b4b;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-code);
  font-size: 0.82rem;
}
.chat-code__label {
  display: block;
  font-size: 0.7rem;
  color: #a5b4fc;
  font-family: var(--font);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chat-code code { color: #e2e8f0; }
.c-str { color: #86efac; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
  width: auto;
}
.t-dot {
  width: 7px; height: 7px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}
.t-dot:nth-child(2) { animation-delay: 0.2s; }
.t-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.float-badge--1 { top: -15px; left: 50%; transform: translateX(-50%); }
.float-badge--2 { top: 50%; right: -40px; transform: translateY(-50%); }
.float-badge--3 { bottom: -15px; right: 10px; }

/* ===================================================
   WORRY SECTION
   =================================================== */
.worry { background: var(--bg2); }

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

.worry-card {
  background: #fff;
  border: 2px solid #c5cae9;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}
.worry-card:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: #c5cae9;
  box-shadow: var(--shadow);
}
.worry-card__emoji {
  font-size: 2.8rem;
  margin-bottom: 14px;
}
.worry-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.6;
}

.worry__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
}
.worry__arrow i {
  font-size: 2rem;
  animation: bounceDown 1.5s ease infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===================================================
   LANGUAGES
   =================================================== */
.languages { background: var(--bg2); }

.languages__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.lang-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 12px;
  text-align: center;
  transition: all var(--transition);
}
.lang-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pale);
  box-shadow: var(--shadow);
}

.lang-card__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.lang-card__name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.lang-card__ext {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  font-family: var(--font-code);
}

.languages__note {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.languages__note-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.languages__note p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.7;
}
.languages__note strong {
  color: var(--primary);
}

/* ===================================================
   IMPACT (数字で見る効果)
   =================================================== */
.impact { background: #fff; }

.impact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.impact-card {
  background: var(--surface2);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.impact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
}
.impact-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-pale);
  box-shadow: var(--shadow);
  background: #fff;
}
.impact-card--accent {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  border-color: #c4b5fd;
}
.impact-card--accent::before {
  background: linear-gradient(90deg, var(--accent), #fbbf24);
}
.impact-card--accent:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(108,99,255,0.2);
}

.impact-card__number {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.impact-card--accent .impact-card__number { color: var(--accent); }
.impact-card__unit {
  font-size: 0.5em;
  font-weight: 800;
  vertical-align: super;
  margin-left: 2px;
}
.impact-card__label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.impact-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 600;
}
.impact-card__desc strong { color: var(--primary); }

.impact__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 12px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}
.impact__note i {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.impact__note p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 600;
}

/* --- Comparison: 普通 vs PatchWing --- */
.impact__comparison {
  max-width: 900px;
  margin: 0 auto;
}
.impact__comparison-title {
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 32px;
}

.comparison__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}

.comparison__side {
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.comparison__side--before {
  background: #fff5f5;
  border: 2px solid #fecaca;
}
.comparison__side--after {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.comparison__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}
.comparison__side--before .comparison__label { color: #dc2626; }
.comparison__side--after .comparison__label { color: #16a34a; }
.comparison__label-icon { font-size: 1.6rem; }

.comparison__flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.comparison__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0,0,0,0.05);
}
.comparison__step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}
.comparison__side--before .comparison__step-num {
  background: #fecaca;
  color: #dc2626;
}
.comparison__side--after .comparison__step-num {
  background: #bbf7d0;
  color: #16a34a;
}
.comparison__step p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.comparison__step--repeat {
  background: #fee2e2;
  border-color: #fecaca;
}
.comparison__step--fast {
  background: #dcfce7;
  border-color: #bbf7d0;
}

.comparison__arrow-down {
  text-align: center;
  font-size: 0.85rem;
  padding: 2px 0;
}
.comparison__side--before .comparison__arrow-down { color: #fca5a5; }
.comparison__side--after .comparison__arrow-down { color: #86efac; }

.comparison__result {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.comparison__result--bad {
  background: #fee2e2;
  border: 2px solid #fecaca;
}
.comparison__result--good {
  background: #dcfce7;
  border: 2px solid #bbf7d0;
}
.comparison__result-number {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
}
.comparison__result--bad .comparison__result-number { color: #dc2626; }
.comparison__result--good .comparison__result-number { color: #16a34a; }
.comparison__result-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.4;
}
.comparison__result-label span {
  font-size: 0.72rem;
  color: var(--text-light);
}

.comparison__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 0.05em;
  writing-mode: vertical-rl;
}

/* --- Impact Responsive --- */
@media (max-width: 900px) {
  .impact__cards { grid-template-columns: repeat(3, 1fr); }
  .comparison__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .comparison__vs {
    writing-mode: horizontal-tb;
    padding: 8px 0;
    font-size: 1.5rem;
  }
}
@media (max-width: 768px) {
  .impact__cards { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; margin-bottom: 24px; }
}

/* ===================================================
   FEATURES
   =================================================== */
.features.section { background: #fff; }

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

.feature-card {
  background: var(--surface2);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-pale);
  box-shadow: var(--shadow);
  background: #fff;
}

.feature-card--highlight {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  border-color: #c4b5fd;
}
.feature-card--highlight:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(108,99,255,0.2);
}

.feature-card__emoji {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.feature-card__tag {
  position: absolute;
  top: 20px; right: 20px;
  background: #4f46e5;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
}

/* ===================================================
   HOW IT WORKS
   =================================================== */
.how { background: #fff; }

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pale);
  box-shadow: var(--shadow);
}
.step__icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
}
.step__number {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.step__body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.step__body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.step__pill {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
}
.step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--primary-light);
  font-size: 1.5rem;
  align-self: center;
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials { background: var(--bg2); }

.testimonials__disclaimer {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
}

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

.testimonial {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pale);
  box-shadow: var(--shadow);
}

.testimonial > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 600;
}
.testimonial > p strong { color: var(--primary); }

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #fff;
}
.author__avatar--a { background: linear-gradient(135deg, #f97316, #fbbf24); }
.author__avatar--k { background: linear-gradient(135deg, var(--primary), #a78bfa); }
.author__avatar--m { background: linear-gradient(135deg, #ec4899, #f43f5e); }

.testimonial__author strong { display: block; font-size: 0.92rem; color: var(--text); font-weight: 800; }
.testimonial__author span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

/* ===================================================
   FAQ
   =================================================== */
.faq { background: #fff; }
.faq__list { max-width: 720px; margin: 0 auto; }

.faq__item {
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 2px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq__item:hover { border-color: var(--primary-pale); }

.faq__question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 800;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}
.faq__question:hover { color: var(--primary); }
.faq__question i {
  flex-shrink: 0;
  transition: transform var(--transition);
  font-size: 0.85rem;
  background: var(--primary-pale);
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
}
.faq__question[aria-expanded="true"] i { transform: rotate(180deg); background: var(--primary); color: #fff; }

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.faq__answer.open {
  padding: 0 24px 20px;
}
.faq__answer p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  font-weight: 600;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

/* ===================================================
   CTA
   =================================================== */
.cta-section {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 50%, #dbeafe 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--border);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%236c63ff' opacity='0.2'/%3E%3C/svg%3E") repeat;
}
.cta-section__content {
  position: relative;
  text-align: center;
}
.cta-section__emoji { font-size: 4rem; margin-bottom: 16px; animation: blobFloat 4s ease-in-out infinite; }
.cta-section__content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.25;
  color: var(--text);
}
.cta-section__content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  font-weight: 600;
}
.cta-section__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.cta-price__amount {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #e03035;
  letter-spacing: -0.02em;
}
.cta-price__tax {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}
.cta-section__price-note {
  font-size: 0.88rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 28px;
  animation: pulse 2s ease infinite;
}
.cta-section__trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 700;
}
.cta-section__trust i { color: var(--primary); margin-right: 5px; }
.cta-trust__link {
  transition: color var(--transition);
}
.cta-trust__link:hover {
  color: var(--primary);
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

[data-pwing-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-pwing-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-pwing-aos][data-pwing-aos-delay="80"]  { transition-delay: 0.08s; }
[data-pwing-aos][data-pwing-aos-delay="100"] { transition-delay: 0.1s; }
[data-pwing-aos][data-pwing-aos-delay="160"] { transition-delay: 0.16s; }
[data-pwing-aos][data-pwing-aos-delay="200"] { transition-delay: 0.2s; }
[data-pwing-aos][data-pwing-aos-delay="240"] { transition-delay: 0.24s; }
[data-pwing-aos][data-pwing-aos-delay="320"] { transition-delay: 0.32s; }
[data-pwing-aos][data-pwing-aos-delay="400"] { transition-delay: 0.4s; }
[data-pwing-aos][data-pwing-aos-delay="480"] { transition-delay: 0.48s; }
[data-pwing-aos][data-pwing-aos-delay="560"] { transition-delay: 0.56s; }
[data-pwing-aos][data-pwing-aos-delay="600"] { transition-delay: 0.6s; }
[data-pwing-aos][data-pwing-aos-delay="640"] { transition-delay: 0.64s; }
[data-pwing-aos][data-pwing-aos-delay="720"] { transition-delay: 0.72s; }
[data-pwing-aos][data-pwing-aos-delay="800"] { transition-delay: 0.8s; }
[data-pwing-aos][data-pwing-aos-delay="1000"]{ transition-delay: 1.0s; }

/* Float badges AOS override */
.float-badge[data-pwing-aos] { transform: translateX(20px); }
.float-badge[data-pwing-aos].aos-visible { transform: translateX(0); }
/* Restore positioned float badges after AOS */
.float-badge--1.aos-visible { transform: translateX(-50%); }
.float-badge--2.aos-visible { transform: translateY(-50%); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero__inner--centered { grid-template-columns: 1fr; }
  .chat-card { max-width: 320px; }
  .float-badge { display: none; }
  .worry__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .languages__grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__visual-full { display: block; margin-top: 32px; }
  .steps { grid-template-columns: 1fr; }
  .step__arrow { display: none; }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav__menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { font-size: 1.3rem; padding: 12px 32px; color: var(--text); }
  .hamburger { display: flex; z-index: 1001; }

  .worry__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .languages__grid { grid-template-columns: repeat(4, 1fr); }
  .cta-section__trust { flex-direction: column; gap: 10px; align-items: center; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
  .worry__grid { grid-template-columns: 1fr; }
  .languages__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__note { flex-direction: column; gap: 8px; }
}

/* ===================================================
   Buy Buttons (red CTA for contrast)
   =================================================== */
#heroBuyBtn,
#ctaBuyBtn {
  background: linear-gradient(135deg, #fc4d50 0%, #e03035 100%);
  box-shadow: 0 4px 20px rgba(252, 77, 80, 0.4);
  text-shadow: 0 2px 4px rgba(0, 2, 14, 0.5);
}
#heroBuyBtn:hover,
#ctaBuyBtn:hover {
  box-shadow: 0 8px 32px rgba(252, 77, 80, 0.5);
}

/* Nav Buy Button - gradient border */
#navBuyBtn {
  position: relative;
  background: #fff;
  color: #fc4d50;
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #fc4d50 0%, #e03035 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  font-weight: 800;
}
#navBuyBtn:hover {
  background-image: linear-gradient(#fff5f5, #fff5f5), linear-gradient(135deg, #fc4d50 0%, #e03035 100%);
  transform: translateY(-2px);
}

/* ===================================================
   HERO SCREENSHOT (placeholder)
   =================================================== */
.hero__screenshot {
  max-width: 440px;
  margin-left: auto;
}

.screenshot__frame {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
}

.screenshot__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2e2a5e 0%, #1e1b4b 100%);
}
.screenshot__titlebar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.screenshot__titlebar .dot--red { background: #ff5f57; }
.screenshot__titlebar .dot--yellow { background: #ffbd2e; }
.screenshot__titlebar .dot--green { background: #28c840; }
.screenshot__titlebar-text {
  margin-left: 8px;
  font-size: 0.78rem;
  color: #a5b4fc;
  font-family: var(--font-code);
  font-weight: 600;
}

.screenshot__body { }

/* ★ 実際のスクショ画像を使う場合 */
.screenshot__body img {
  width: 100%;
  display: block;
}

/* (Mock UI styles removed - using real screenshot now) */

.screenshot__caption {
  text-align: center;
  padding: 14px 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 700;
}
.screenshot__caption i {
  margin-right: 4px;
  color: var(--primary-light);
}

/* ===================================================
   DEMO VIDEO SECTION
   =================================================== */
.demo { background: var(--bg2); }

.demo__video-wrapper {
  max-width: 800px;
  margin: 0 auto 48px;
}

.demo__video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  background: #1e1b4b;
}
.demo__video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.demo__video-caption {
  text-align: center;
  padding: 16px;
}
.demo__video-caption p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-pale);
  border: 1.5px solid #fde68a;
  color: #92400e;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}

.demo__highlights {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.demo__highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  min-width: 140px;
  transition: all var(--transition);
}
.demo__highlight-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pale);
  box-shadow: var(--shadow);
}

.demo__highlight-icon {
  font-size: 2rem;
}
.demo__highlight-item p {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.demo__highlight-arrow {
  color: var(--primary-light);
  font-size: 1.3rem;
}

/* Language card popular badge */
.lang-card--popular {
  position: relative;
  border-color: var(--primary-pale);
  background: linear-gradient(135deg, #faf5ff, #ede9fe);
}
.lang-card__badge {
  position: absolute;
  top: -8px; right: -8px;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ===================================================
   RESPONSIVE additions
   =================================================== */
@media (max-width: 900px) {
  .demo__highlight-arrow { display: none; }
  .demo__highlights { gap: 12px; }
}
@media (max-width: 480px) {
  .demo__highlight-item { min-width: 100px; padding: 16px 20px; }
}