/* ================================================================
   台湾スピーク iOS LP — スタイルシート
   ベース: chinese-ai-coach/public/css/lp.css (#0A5FA6 トーン継承)
   強化: FV背景・デバイスモック・Sticky CTA・fade-in・セクションリズム
   ================================================================ */

/* ===== CSS変数 ===== */
:root {
  --primary: #0A5FA6;
  --primary-dark: #074A82;
  --primary-light: #E6F0FA;
  --primary-xlight: #E8F2FF;
  --accent: #FFB84D;
  --bg: #FAF8F5;
  --bg-white: #FFFFFF;
  --bg-alt: #E8F2FF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --border: #E8E3DC;
  --success: #2E7D57;
  --premium: #7B5CF0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(10, 95, 166, 0.10);
  --shadow-lg: 0 8px 32px rgba(10, 95, 166, 0.14);
  --shadow-device: 0 24px 60px rgba(0, 0, 0, 0.22), 0 8px 20px rgba(0, 0, 0, 0.12);
  --max-width: 1100px;
  --duo-green: #58CC02;
  --duo-yellow: #FFC800;
  --duo-red: #FF4B4B;
  --duo-blue: #1CB0F6;
  --duo-purple: #CE82FF;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-alt { background: var(--primary-xlight); }

/* ===== Section Typography ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 52px;
}

/* ===== Fade-in-up animation ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   Sticky CTA (mobile only)
   ================================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: white;
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.10);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.sticky-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.sticky-cta-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.sticky-cta-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sticky-cta-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(10, 95, 166, 0.3);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sticky-cta { display: block; }
}

/* ================================================================
   Header
   ================================================================ */
.lp-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
}
.logo img { border-radius: 8px; }
.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.header-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--primary); }
.btn-header {
  background: var(--primary);
  color: white !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem !important;
  box-shadow: 0 3px 12px rgba(10, 95, 166, 0.22);
  transition: background 0.2s, transform 0.2s;
}
.btn-header:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
@media (max-width: 720px) {
  .header-nav a:not(.btn-header) { display: none; }
  .hamburger { display: none; }
  .header-inner { padding: 11px 18px; }
  .logo { font-size: 1rem; }
  .logo span { white-space: nowrap; }
  .logo img { width: 30px; height: 30px; }
  .btn-header { white-space: nowrap; font-size: 0.82rem !important; padding: 8px 15px; }
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  min-height: 600px;
}
/* 背景画像レイヤー */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.72) saturate(1.1);
}
/* グラデーションオーバーレイ: 左＝テキスト読みやすい暗め / 右＝やや透過 */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 74, 130, 0.82) 0%,
    rgba(10, 95, 166, 0.65) 45%,
    rgba(10, 95, 166, 0.30) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-badge-brand {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-badge-free {
  background: var(--accent);
  color: #3A2000;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.18;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 33em;
}
.hero-subtitle strong {
  color: var(--accent);
  font-weight: 800;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.6;
}

/* App Store バッジ風ボタン */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: white;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}
.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.appstore-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.appstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.appstore-sub {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.02em;
}
.appstore-main {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.btn-appstore-light {
  background: white;
  color: #1A1A1A;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.20);
}
.btn-appstore-light:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.btn-browser {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.btn-browser:hover { color: white; border-color: white; }
.btn-browser-light {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Hero visual / Device frame ===== */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-app-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-app-icon img { border-radius: 8px; width: 32px; height: 32px; }
.hero-app-icon span { color: white; font-size: 0.9rem; font-weight: 700; }

/* ================================================================
   iPhone Device Frame
   ================================================================ */
.device-frame {
  position: relative;
  width: 240px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px 10px;
  box-shadow: var(--shadow-device);
  border: 2px solid #333;
  flex-shrink: 0;
}
.device-frame.device-sm {
  width: 200px;
  border-radius: 34px;
  padding: 10px 8px;
}
.device-screen {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
}
.device-frame.device-sm .device-screen {
  border-radius: 25px;
}
.device-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 12px;
  z-index: 10;
}
.device-frame.device-sm .device-notch {
  top: 11px;
  width: 66px;
  height: 18px;
}
.device-home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #555;
  border-radius: 2px;
}

/* ================================================================
   アプリ内モック: Skill Tree
   ================================================================ */
.mock-skillTree {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
}
.mock-topbar {
  display: flex;
  justify-content: space-between;
  padding: 32px 12px 8px;
  border-bottom: 1px solid #f0f0f0;
}
.mock-stat {
  font-size: 11px;
  font-weight: 800;
}
.mock-stat.streak { color: var(--duo-red); }
.mock-stat.gems { color: var(--duo-blue); }
.mock-stat.xp { color: #d6a700; }

.mock-ricky-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #ebf5ff 0%, #e0f2fe 100%);
  border-radius: 10px;
  border: 1px solid rgba(49, 130, 206, 0.15);
}
.mock-ricky-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  flex-shrink: 0;
}
.mock-ricky-name { font-size: 8px; font-weight: 800; color: #1a365d; }
.mock-ricky-msg { font-size: 9px; line-height: 1.35; color: #1A1A1A; font-weight: 500; }

.mock-tree {
  flex: 1;
  position: relative;
  margin: 6px 8px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
}
.mock-tree-bg {
  position: absolute;
  inset: 0;
}
.mock-tree-bgimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.mock-tree-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}
/* スキルツリー: 蛇行する道 + ノード（SVG） */
.mock-tree-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}
.mtnode circle { stroke: rgba(0, 0, 0, 0.12); stroke-width: 1; }
.mtnode text {
  text-anchor: middle;
  dominant-baseline: central;
  font-size: 11px;
  font-weight: 800;
  fill: #fff;
}
.mtnode.done circle { fill: #58CC02; }
.mtnode.current circle { fill: #FFC800; }
.mtnode.current text { fill: #1a1a1a; }
.mtnode.locked circle { fill: #cbd0d6; }
.mock-nodes {
  position: relative;
  z-index: 1;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
/* ノードをつなぐ道（浮島→連続した道に） */
.mock-nodes::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  bottom: 16px;
  width: 5px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 3px;
  z-index: 0;
}
.mock-node-row { position: relative; z-index: 1; }
.mock-node-row {
  display: flex;
  justify-content: center;
  width: 100%;
}
.mock-zig-r { padding-right: 40px; }
.mock-zig-l { padding-left: 40px; }
.mock-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: white;
  box-shadow: 0 3px 0 rgba(0,0,0,0.2);
  background: var(--duo-green);
}
.mock-node small { font-size: 7px; font-weight: 700; opacity: 0.85; }
.mock-node.done { background: var(--duo-green); }
.mock-node.current {
  background: var(--duo-yellow);
  color: #1a1a1a;
  animation: mock-bounce 1.4s ease-in-out infinite;
}
@keyframes mock-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.mock-node.locked {
  background: #d0d0d0;
  color: #888;
  box-shadow: 0 3px 0 #bbb;
}

.mock-nav {
  display: flex;
  border-top: 1px solid #f0f0f0;
  padding: 4px 0 6px;
}
.mock-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 7px;
  font-weight: 700;
  color: #999;
  padding: 2px 0;
}
.mock-nav-btn span:first-child { font-size: 13px; }
.mock-nav-btn.active { color: #3182ce; }

/* ================================================================
   モック: 道場
   ================================================================ */
.mock-dojo {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 32px 12px 12px;
  gap: 12px;
}
.mock-dojo-header { text-align: center; }
.mock-dojo-title { font-size: 14px; font-weight: 900; color: #1a365d; }
.mock-dojo-sub { font-size: 9px; color: #888; margin-top: 2px; }
.mock-dojo-card {
  background: #f8fbff;
  border: 1px solid #ddeeff;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mock-dojo-word { font-size: 22px; font-weight: 900; color: #0A5FA6; }
.mock-dojo-pinyin { font-size: 10px; color: #888; }
.mock-dojo-meaning { font-size: 11px; font-weight: 700; color: #1a1a1a; }
.mock-dojo-mic {
  background: #e53e3e;
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 6px;
}
.mock-dojo-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #666;
}
.mock-dojo-bar {
  flex: 1;
  height: 5px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}
.mock-dojo-fill {
  height: 100%;
  background: var(--duo-green);
  border-radius: 3px;
}

/* ================================================================
   モック: 老師チャット
   ================================================================ */
.mock-laoshi {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
}
.mock-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 12px 10px;
  background: white;
  border-bottom: 1px solid #eee;
}
.mock-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.mock-chat-name { font-size: 11px; font-weight: 800; color: #1a365d; }
.mock-chat-status { font-size: 8px; color: var(--duo-green); font-weight: 600; }
.mock-chat-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.mock-bubble {
  max-width: 82%;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 8.5px;
  line-height: 1.5;
  font-weight: 500;
}
.mock-bubble.teacher {
  background: white;
  color: #1a1a1a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.mock-bubble.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* ================================================================
   モック: プロフィール
   ================================================================ */
.mock-profile {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 28px 12px 12px;
  gap: 10px;
}
.mock-profile-header { text-align: center; }
.mock-avatar { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.mock-profile-name { font-size: 11px; font-weight: 800; color: #1a1a1a; }
.mock-profile-level { font-size: 9px; color: #0A5FA6; font-weight: 700; }
.mock-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mock-stat-card {
  background: #f8fbff;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}
.mock-stat-num { font-size: 10px; font-weight: 800; color: #1a1a1a; }
.mock-stat-lbl { font-size: 7px; color: #888; margin-top: 2px; }
.mock-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.mock-badge { font-size: 20px; }
.mock-badge.locked-b { opacity: 0.3; }

/* ================================================================
   社会的証明バー
   ================================================================ */
.proof-bar {
  background: var(--primary);
  padding: 28px 0;
}
.proof-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  text-align: center;
}
.proof-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: white;
  line-height: 1.2;
}
.proof-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 3px;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
}
@media (max-width: 640px) {
  .proof-bar-inner { gap: 20px 0; }
  .proof-divider { display: none; }
  .proof-item { width: 50%; padding: 8px 16px; }
}

/* ================================================================
   背景ストーリー
   ================================================================ */
.story { padding: 96px 0; }
.story-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.story-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.story-ricky {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  width: 100%;
  display: flex;
  justify-content: center;
}
.story-ricky-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}
.story-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
}
.story-credit img { border-radius: 6px; flex-shrink: 0; }
.story-credit-name { font-size: 0.9rem; font-weight: 800; color: var(--text); }
.story-credit-org { font-size: 0.75rem; color: var(--text-muted); }
.story-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.story-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 28px;
}
.story-body p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 1rem;
}
.story-quote {
  border-left: 4px solid var(--primary);
  padding: 14px 20px;
  margin: 20px 0;
  background: var(--primary-xlight);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}
.story-body strong { color: var(--text); font-weight: 700; }
@media (max-width: 880px) {
  .story-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .story-visual {
    flex-direction: row;
    align-items: center;
  }
  .story-ricky { width: 140px; padding: 16px; flex-shrink: 0; }
  .story-ricky-img { width: 110px; height: 110px; }
  .story-credit { flex: 1; }
}
@media (max-width: 640px) {
  .story { padding: 64px 0; }
  .story-visual { flex-direction: column; }
  .story-ricky { width: 100%; }
}

/* ================================================================
   Pain
   ================================================================ */
.pain {
  padding: 96px 0;
  background: var(--bg-white);
}
.pain .section-title { margin-bottom: 48px; }
.pain-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  border-left: 4px solid var(--primary);
}
.pain-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}
.pain-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text);
}
.pain-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
@media (max-width: 640px) {
  .pain { padding: 64px 0; }
  .pain-card { padding: 20px; }
  .pain-icon { font-size: 1.5rem; width: 36px; }
}

/* ================================================================
   常識破壊
   ================================================================ */
.breakthrough {
  padding: 110px 0;
  background: linear-gradient(135deg, #0A5FA6 0%, #074A82 100%);
  color: white;
  text-align: center;
}
.breakthrough-inner { max-width: 760px; margin: 0 auto; }
.breakthrough-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  font-weight: 500;
}
.breakthrough-title {
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.38;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.breakthrough-title .highlight {
  color: var(--accent);
}
.breakthrough-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.90);
}
.breakthrough-text strong { color: var(--accent); font-weight: 800; }
.compare-word {
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.95em;
  color: rgba(255,255,255,0.75);
  text-decoration: line-through;
}
.compare-word-tw {
  background: rgba(255, 184, 77, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.95em;
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 640px) {
  .breakthrough { padding: 72px 0; }
}

/* ================================================================
   Solution
   ================================================================ */
.solution { padding: 96px 0; }
.solution-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.solution-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10, 95, 166, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.solution-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.18;
  flex-shrink: 0;
  width: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.solution-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.solution-body p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.solution-premium {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--premium);
  font-weight: 700;
  background: #f3f0ff;
  padding: 3px 10px;
  border-radius: 6px;
}
@media (max-width: 640px) {
  .solution { padding: 64px 0; }
  .solution-card { padding: 24px; gap: 20px; flex-direction: column; }
  .solution-num { font-size: 1.4rem; }
}

/* ================================================================
   機能ショーケース
   ================================================================ */
.showcase {
  padding: 96px 0;
  background: var(--bg-white);
}
.showcase .section-title { margin-bottom: 32px; }
.showcase-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab-btn {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: inherit;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.showcase-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.showcase-device {
  display: flex;
  justify-content: center;
}
.showcase-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: var(--primary-xlight);
  color: var(--primary);
}
.showcase-badge.premium {
  background: #f0ebff;
  color: var(--premium);
}
.showcase-text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 14px;
}
.showcase-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 18px;
}
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.showcase-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.showcase-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.showcase-trial {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
  background: #f0fdf4;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(46, 125, 87, 0.2);
}
@media (max-width: 760px) {
  .showcase { padding: 64px 0; }
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .showcase-list li { text-align: left; }
  .showcase-badge { margin-top: 4px; }
}

/* ================================================================
   AI機能ハイライト
   ================================================================ */
.ai-highlight { padding: 96px 0; }
.ai-highlight .section-title { margin-bottom: 14px; }
.ai-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto 28px;
}
.ai-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10, 95, 166, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ai-card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.ai-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.ai-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.ai-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--premium);
  background: #f0ebff;
  padding: 4px 12px;
  border-radius: 999px;
}
.ai-note {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: white;
  border: 1px solid rgba(10, 95, 166, 0.14);
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.ai-note strong { color: var(--primary); font-weight: 800; }
@media (max-width: 640px) {
  .ai-highlight { padding: 64px 0; }
  .ai-cards { grid-template-columns: 1fr; }
  .ai-card { padding: 24px; }
}

/* ================================================================
   比較表
   ================================================================ */
.compare {
  padding: 96px 0;
  background: var(--bg-white);
}
.compare-table-wrap { overflow-x: auto; margin-top: 16px; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  max-width: 880px;
  margin: 0 auto;
  font-size: 0.92rem;
}
.compare-table th,
.compare-table td {
  padding: 14px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 20px;
  padding-bottom: 20px;
}
.compare-table td:first-child,
.compare-table th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}
.compare-table .highlight-col {
  background: var(--primary-xlight);
  color: var(--primary);
  font-weight: 900;
  font-size: 1.05rem;
}
.compare-table thead .highlight-col {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
}
.compare-table .x { color: #ccc; }
.compare-table .tri { color: #aaa; }
.compare-table .ok { color: var(--text-muted); }
@media (max-width: 640px) {
  .compare { padding: 64px 0; }
  /* 5列が窮屈に折返るので横スクロールで各列に余裕を（語の縦折れ防止） */
  .compare-table { min-width: 540px; }
  .compare-table th, .compare-table td { padding: 11px 8px; font-size: 0.8rem; }
  .compare-table th { white-space: nowrap; }
  .compare-table td:first-child, .compare-table th:first-child { white-space: nowrap; }
  .compare-table-wrap {
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
}

/* ================================================================
   運営の信頼
   ================================================================ */
.trust { padding: 96px 0; }
.trust .section-title { margin-bottom: 40px; }
.trust-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.trust-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}
.trust-card-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}
.trust-ricky {
  background: linear-gradient(135deg, var(--primary-xlight) 0%, #daeeff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}
.trust-ricky-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 16%;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(10, 95, 166, 0.18);
}
.trust-content {
  padding: 36px 36px 32px 32px;
}
.trust-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.trust-body strong { color: var(--text); font-weight: 700; }
.trust-metrics {
  display: flex;
  gap: 24px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.trust-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-metric-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}
.trust-metric-num small { font-size: 0.85rem; font-weight: 700; }
.trust-metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.trust-voice-placeholder {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.trust-voice-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}
@media (max-width: 760px) {
  .trust { padding: 64px 0; }
  .trust-card-body { grid-template-columns: 1fr; }
  .trust-ricky { padding: 20px; }
  .trust-ricky-img { width: 120px; height: 120px; }
  .trust-content { padding: 24px; }
}

/* ================================================================
   Pricing
   ================================================================ */
.pricing {
  padding: 96px 0;
  background: var(--bg-white);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
  align-items: start;
}
.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  padding-top: 44px;
}
.pricing-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, #FF9B1A 100%);
  color: white;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 155, 26, 0.32);
  white-space: nowrap;
}
.pricing-plan-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}
.pricing-plan-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.price-display { margin-bottom: 24px; }
.price-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.price-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}
.price-coming {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg);
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.pricing-list li {
  padding: 9px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list li.ok::before { content: "✓"; color: var(--success); font-weight: 900; flex-shrink: 0; }
.pricing-list li.ng {
  color: var(--text-muted);
  opacity: 0.55;
}
.pricing-list li.ng::before { content: "–"; color: var(--text-muted); flex-shrink: 0; }
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 800;
  border-radius: 999px;
  padding: 15px 32px;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(10, 95, 166, 0.28);
  transition: all 0.25s;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 95, 166, 0.35);
}
.btn-pricing { width: 100%; }
.pricing-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .pricing { padding: 64px 0; }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-card { padding: 28px 24px; }
}

/* ================================================================
   FAQ
   ================================================================ */
.faq { padding: 96px 0; }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 20px 48px 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  list-style: none;
  position: relative;
  color: var(--text);
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.faq-item a {
  color: var(--primary);
  text-decoration: underline;
}
@media (max-width: 640px) { .faq { padding: 64px 0; } }

/* ================================================================
   Final CTA
   ================================================================ */
.final-cta {
  padding: 110px 0;
  background: linear-gradient(135deg, #0A5FA6 0%, #074A82 100%);
  color: white;
  text-align: center;
}
.final-cta-inner { max-width: 600px; margin: 0 auto; }
.final-cta h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}
.final-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 40px;
}
.final-cta-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.final-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 640px) { .final-cta { padding: 72px 0; } }

/* ================================================================
   Footer
   ================================================================ */
.lp-footer {
  padding: 48px 0;
  background: #0a1928;
  color: rgba(255,255,255,0.65);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: white;
  font-size: 1rem;
}
.footer-brand img { border-radius: 6px; }
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: white; }
.footer-legal {
  display: flex;
  gap: 20px;
  width: 100%;
}
.footer-legal a {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  text-decoration: underline;
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }
.footer-org {
  width: 100%;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav, .footer-legal { justify-content: center; flex-wrap: wrap; }
}

/* ================================================================
   Hero レスポンシブ
   ================================================================ */
@media (max-width: 900px) {
  .hero { padding: 72px 0 76px; min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;            /* 中央揃えのデコボコを解消（デスクトップと同じ左揃え） */
  }
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.2rem);
    line-height: 1.26;
    margin-bottom: 22px;
  }
  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.9;
    margin: 0 0 32px;
    max-width: 30em;
  }
  .hero-cta { align-items: flex-start; gap: 16px; }
  .hero-note { font-size: 0.82rem; margin: 0; }
  /* スマホでは端末モックを出さず、H1をFVに */
  .hero-visual { display: none; }
  /* 文字可読性のため縦グラデで全体を暗めに */
  .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(7, 74, 130, 0.84) 0%, rgba(10, 95, 166, 0.70) 100%);
  }
  .btn-appstore { padding: 14px 28px 14px 22px; }
}
@media (max-width: 480px) {
  .hero { padding: 56px 0 62px; }
  .hero-title { font-size: 2.45rem; }
  .hero-subtitle { font-size: 0.98rem; }
}

/* ================================================================
   アイコン (Lucide系) + 追加コンポーネント (2026-05-30 改訂)
   ================================================================ */
.ic { width: 24px; height: 24px; display: block; flex-shrink: 0; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 13px; height: 13px; }
.ic-xxs { width: 10px; height: 10px; }

/* Pain アイコン → 角丸バッジ + SVG */
.pain-icon {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: 14px;
  background: var(--primary-xlight);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0; text-align: initial;
}
.pain-icon .ic { width: 26px; height: 26px; }
@media (max-width: 640px) {
  .pain-icon { width: 44px; height: 44px; min-width: 44px; }
  .pain-icon .ic { width: 22px; height: 22px; }
}

/* AIカード アイコン → 角丸バッジ + SVG */
.ai-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary-xlight);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 0;
}
.ai-card-icon .ic { width: 28px; height: 28px; }

/* showcase タブ: アイコン + テキスト横並び */
.tab-btn { display: inline-flex; align-items: center; gap: 7px; }

/* アプリモック: 上部バー (絵文字stat廃止) */
.mock-appbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 14px 8px;
  border-bottom: 1px solid #f0f0f0;
}
.mock-appbar-unit { font-size: 9px; font-weight: 800; color: #1a365d; }
.mock-appbar-prog {
  font-size: 8px; font-weight: 700; color: #3182ce;
  background: #eaf4ff; padding: 2px 7px; border-radius: 999px;
}

/* アプリモック: 下部ナビ SVG サイズ */
.mock-nav-btn .ic { width: 15px; height: 15px; }

/* 機能の補足ノート (プレミアム専用 等) — 説明文と分離 */
.feature-note {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--premium);
  background: #f3f0ff;
  border: 1px solid rgba(123, 92, 240, 0.18);
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 1.55;
}

/* アプリモック: 発音採点画面 */
.mock-score {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  background: white; padding: 30px 12px 12px; gap: 9px;
}
.mock-score-top { font-size: 12px; font-weight: 900; color: #1a365d; }
.mock-score-ring { position: relative; width: 84px; height: 84px; }
.mock-score-svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.mock-score-track { fill: none; stroke: #eef3f8; stroke-width: 7; }
.mock-score-bar {
  fill: none; stroke: var(--duo-green); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 213.6; stroke-dashoffset: 17;
}
.mock-score-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 1px;
}
.mock-score-num { font-size: 26px; font-weight: 900; color: #1a1a1a; line-height: 1; }
.mock-score-unit { font-size: 9px; font-weight: 700; color: #888; align-self: flex-end; margin-bottom: 5px; }
.mock-score-word { display: flex; gap: 7px; margin-top: 2px; }
.mock-score-char {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 7px; border-radius: 8px; min-width: 30px;
}
.mock-score-char.good { background: #eafaf0; }
.mock-score-char.warn { background: #fff4e5; }
.mc-han { font-size: 16px; font-weight: 900; color: #1a1a1a; }
.mc-py { font-size: 8px; font-weight: 700; }
.mock-score-char.good .mc-py { color: var(--success); }
.mock-score-char.warn .mc-py { color: #c77700; }
.mock-score-fb {
  font-size: 9px; line-height: 1.5; color: #555; text-align: center;
  background: #f7f9fc; border-radius: 8px; padding: 7px 9px; margin-top: 2px;
}
.mock-score-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; width: 100%; }
.mock-score-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 9px; font-weight: 800; padding: 8px 0; border-radius: 999px;
}
.mock-score-btn.ghost { background: #eef3f8; color: #3182ce; }
.mock-score-btn.main { background: var(--primary); color: white; }

/* 声調グラフ（発音道場の採点） */
.mock-tone {
  width: 100%;
  background: #f7fafd;
  border: 1px solid #e6eef7;
  border-radius: 12px;
  padding: 8px 10px 6px;
}
.mock-tone-head { display: flex; align-items: baseline; justify-content: space-between; }
.mock-tone-word { font-size: 15px; font-weight: 900; color: #0A5FA6; letter-spacing: 2px; }
.mock-tone-score { font-size: 16px; font-weight: 900; color: #2E7D57; }
.mock-tone-score small { font-size: 9px; font-weight: 700; margin-left: 1px; }
.mock-tone-legend { display: flex; gap: 12px; margin: 4px 0 2px; }
.mock-tone-legend span { font-size: 7px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.mock-tone-legend span::before {
  content: ""; width: 11px; height: 0; display: inline-block;
  border-top: 2px solid currentColor;
}
.tl-target { color: #9aa6b2; }
.tl-target::before { border-top-style: dashed; }
.tl-user { color: #2E7D57; }
.mock-tone-graph { width: 100%; height: 52px; display: block; margin-top: 1px; }
.tg-grid { stroke: #e4ebf3; stroke-width: 1; }
.tg-target { fill: none; stroke: #b6c2cf; stroke-width: 2; stroke-dasharray: 3 3; stroke-linecap: round; }
.tg-user { fill: none; stroke-width: 3; stroke-linecap: round; }
.tg-user.good { stroke: #2E7D57; }
.tg-user.warn { stroke: #E8920C; }
.mock-tone-labels { display: flex; margin-top: 2px; }
.mock-tone-labels span {
  flex: 1; text-align: center; font-size: 12px; font-weight: 900; color: #1a1a1a;
  display: flex; flex-direction: column; line-height: 1.1;
}
.mock-tone-labels span small { font-size: 7px; font-weight: 700; }
.mock-tone-labels span.good small { color: #2E7D57; }
.mock-tone-labels span.warn small { color: #E8920C; }

/* ================================================================
   モック v2: 発音道場 採点結果画面（実機スクショ準拠）
   ================================================================ */
.mock-score-v2 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f6fb;
  padding: 28px 8px 8px;
  gap: 6px;
  overflow: hidden;
}

/* 上部カード: 総合スコア + 単語 */
.msv2-header-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 0;
}
.msv2-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding-right: 10px;
}
.msv2-score-label {
  font-size: 7.5px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.04em;
}
.msv2-ring-wrap {
  position: relative;
  width: 48px;
  height: 48px;
}
.msv2-ring-svg {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}
.msv2-ring-track {
  fill: none;
  stroke: #e8f0f8;
  stroke-width: 5;
}
.msv2-ring-bar {
  fill: none;
  stroke: #38a169;
  stroke-width: 5;
  stroke-linecap: round;
  /* r=23, C≈144.5, 99/100 * 144.5 ≈ 143.1 */
  stroke-dasharray: 144.5;
  stroke-dashoffset: 1.4;
}
.msv2-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
}
.msv2-ring-num {
  font-size: 15px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
}
.msv2-ring-sub {
  font-size: 7px;
  font-weight: 700;
  color: #aaa;
  line-height: 1;
  margin-top: 1px;
}
.msv2-divider {
  width: 1px;
  height: 36px;
  background: #e8edf2;
  flex-shrink: 0;
}
.msv2-word-col {
  flex: 1;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msv2-word-label {
  font-size: 7.5px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.04em;
}
.msv2-word-han {
  font-size: 18px;
  font-weight: 900;
  color: #1a365d;
  letter-spacing: 2px;
  line-height: 1.2;
}
.msv2-word-py {
  font-size: 8px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.08em;
}

/* 声調グラフカード */
.msv2-graph-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 7px 8px 5px;
}
.msv2-graph-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.msv2-graph-title {
  font-size: 7.5px;
  font-weight: 700;
  color: #444;
}
.msv2-graph-legend {
  display: flex;
  gap: 8px;
}
.msv2-legend-target,
.msv2-legend-user {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 6.5px;
  font-weight: 700;
  color: #555;
}
.msv2-graph-body {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.msv2-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 6.5px;
  font-weight: 700;
  color: #bbb;
  padding: 2px 0;
  min-width: 10px;
  text-align: right;
}
.msv2-tone-svg {
  flex: 1;
  height: 54px;
  display: block;
}
.msv2-syllable-labels {
  display: flex;
  margin-top: 3px;
  padding-left: 14px;
}
.msv2-syl {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  color: #3182ce;
}

/* 文字別スコアカード */
.msv2-char-row {
  display: flex;
  gap: 5px;
}
.msv2-char-card {
  flex: 1;
  background: white;
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.msv2-char-han {
  font-size: 15px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
}
.msv2-char-info {
  font-size: 7px;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
}
.msv2-char-score-pill {
  font-size: 7px;
  font-weight: 800;
  background: #f0fff4;
  color: #38a169;
  border: 1px solid #c6f6d5;
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* Ricky老師カード */
.msv2-ricky-card {
  background: linear-gradient(135deg, #ebf5ff 0%, #e0f2fe 100%);
  border: 1px solid rgba(49, 130, 206, 0.15);
  border-radius: 9px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.msv2-ricky-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  flex-shrink: 0;
}
.msv2-ricky-body {
  flex: 1;
  min-width: 0;
}
.msv2-ricky-name {
  font-size: 7.5px;
  font-weight: 800;
  color: #1a365d;
}
.msv2-ricky-msg {
  font-size: 7.5px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.45;
  margin-top: 1px;
}

/* ================================================================
   モック: 老師チャット 回答カード
   ================================================================ */
.mock-laoshi-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 8px;
  margin-top: 2px;
  border-left: 3px solid #3182ce;
}
.mock-laoshi-card-main {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 2px;
}
.mock-laoshi-card-han {
  font-size: 14px;
  font-weight: 900;
  color: #1a365d;
}
.mock-laoshi-card-py {
  font-size: 8px;
  font-weight: 600;
  color: #3182ce;
  letter-spacing: 0.04em;
}
.mock-laoshi-card-meaning {
  font-size: 8px;
  font-weight: 500;
  color: #555;
  margin-bottom: 3px;
}
.mock-laoshi-card-note {
  font-size: 7.5px;
  color: #666;
  line-height: 1.4;
  border-left: 2px solid #bee3f8;
  padding-left: 5px;
  margin-bottom: 4px;
}
.mock-laoshi-example {
  background: #f7fafd;
  border-radius: 6px;
  padding: 4px 6px;
}
.mock-laoshi-ex-line {
  font-size: 8.5px;
  font-weight: 700;
  color: #1a1a1a;
}
.mock-laoshi-ex-sub {
  font-size: 7px;
  color: #3182ce;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 1px;
}
.mock-laoshi-ex-ja {
  font-size: 7px;
  color: #888;
  margin-top: 1px;
}

/* ================================================================
   AI機能ハイライト: AI会話実画面レイアウト
   ================================================================ */
.ai-convo-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.ai-convo-device {
  display: flex;
  justify-content: center;
}

/* AI会話モック画面本体 */
.mock-aiconvo {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f0f2f7;
}

/* ヘッダー: シーン情報（紫グラデ） */
.mac-header {
  background: linear-gradient(135deg, #553c9a 0%, #7b5cf0 100%);
  padding: 28px 12px 10px;
  text-align: center;
  flex-shrink: 0;
}
.mac-scene-label {
  font-size: 8px;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.14em;
  margin-bottom: 3px;
}
.mac-scene-title {
  font-size: 11px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.02em;
}

/* チャットエリア */
.mac-chat-body {
  flex: 1;
  padding: 8px 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.mac-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.mac-msg-teacher { align-self: flex-start; }
.mac-msg-user { justify-content: flex-end; }
.mac-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid white;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.mac-msg-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 75%;
}
.mac-bubble {
  border-radius: 12px;
  padding: 6px 9px;
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.55;
}
.mac-bubble-teacher {
  background: white;
  color: #1a1a1a;
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.mac-bubble-user {
  background: #6b46c1;
  color: white;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
  box-shadow: 0 1px 3px rgba(107,70,193,0.25);
}
.mac-bubble-actions {
  display: flex;
  gap: 4px;
}
.mac-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 7px;
  font-weight: 700;
  color: #555;
  cursor: default;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.mac-mini-btn .ic,
.mac-mini-btn .ic-xxs {
  display: inline-block;
  flex-shrink: 0;
}

/* 下部入力エリア */
.mac-input-area {
  background: white;
  border-top: 1px solid #e8edf2;
  padding: 6px 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mac-hint-btn {
  background: #fff9c4;
  border: 1px solid #f6e05e;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  flex-shrink: 0;
  color: #744210;
  padding: 0;
  font-family: inherit;
}
.mac-mic-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mac-mic-btn {
  background: linear-gradient(135deg, #553c9a 0%, #7b5cf0 100%);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  color: white;
  box-shadow: 0 3px 10px rgba(107,70,193,0.38);
  padding: 0;
  font-family: inherit;
}
.mac-mic-label {
  font-size: 7px;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
}
.mac-spacer { width: 28px; flex-shrink: 0; }

/* AI会話 テキストコラム */
.ai-convo-text { }
.ai-convo-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 14px;
  word-break: auto-phrase;
  text-wrap: balance;
}
.ai-convo-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 20px;
}
.ai-convo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-convo-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.ai-convo-icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 1px;
}

@media (max-width: 760px) {
  .ai-convo-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .ai-convo-device { justify-content: center; }
  .ai-convo-list li { text-align: left; }
}
@media (max-width: 480px) {
  .ai-highlight { padding: 64px 0; }
}

/* ================================================================
   ユーティリティ
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up { opacity: 1; transform: none; transition: none; }
  .mock-node.current { animation: none; }
}

/* ================================================================
   日本語の改行を自然に
   （中央寄せのデコボコ・語中改行「プ/レミアム」・孤立行「無料。」を防ぐ）
   word-break: auto-phrase = 文節単位で改行 / text-wrap: balance = 行長均等化
   ================================================================ */
.section-title,
.breakthrough-title,
.story-title,
.final-cta h2,
.ai-convo-heading,
.showcase-text h3,
.solution-body h3,
.pain-body h3,
.pricing-plan-name {
  word-break: auto-phrase;
}
/* スマホのみ、句読点（、）で意図的に改行する<br>。
   text-wrap:balanceの「句読点1文字前で切れる」問題を、明示改行で根治 */
.brsp { display: none; }
@media (max-width: 640px) { .brsp { display: inline; } }
.section-sub,
.hero-subtitle,
.breakthrough-text,
.story-body p,
.story-quote,
.final-cta p,
.pricing-plan-sub,
.pricing-note,
.faq-item summary,
.faq-item p,
.ai-note,
.trust-body,
.showcase-text p,
.showcase-list li,
.solution-body p,
.pain-body p {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* ================================================================
   実機スクショ埋め込み用デバイス（枠にはめる）
   ================================================================ */
.device-shot .device-screen { aspect-ratio: 9 / 17; }
.device-shot-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.device-frame.device-xs { width: 132px; border-radius: 26px; padding: 7px 6px; }
.device-frame.device-xs .device-screen { border-radius: 20px; }

/* 学習モードのレッスン活動ギャラリー */
.learn-activities { max-width: 880px; margin: 32px auto 0; text-align: center; }
.learn-act-label { font-size: 0.92rem; font-weight: 700; color: var(--text-muted); margin-bottom: 18px; }
.learn-act-grid { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.learn-act-item { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.learn-act-item figcaption { font-size: 0.82rem; color: var(--text); font-weight: 600; }
