/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   らくらくAI秘書 — セットアップページ
   モバイルファースト / iPhone Safari 最適化
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  --primary: #904d00;
  --primary-dark: #6e3900;
  --accent: #06C755;
  --accent-dark: #05a648;
  --success: #34C759;
  --error: #FF3B30;
  --warning: #FF9500;
  --bg: #fbf9f4;
  --card-bg: #FFFFFF;
  --text: #1b1c19;
  --text-secondary: #544438;
  --border: #e4e2dd;
  --line-green: #06C755;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(6, 199, 85, 0.2);
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* LP needs full-width — break out of 480px container */
.container:has(#landing:not(.hidden)) {
  max-width: 100%;
  padding: 0;
}

/* Fallback for browsers without :has() */
.container.lp-mode {
  max-width: 100%;
  padding: 0;
}

/* ── ヘッダー ── */
.header {
  text-align: center;
  padding: 20px 0;
}

.header h1 {
  font-size: 24px;
  font-weight: 700;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* ── 進捗バー ── */
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 16px 0 8px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 25%;
}

.step-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── ステップ共通 ── */
.step h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

/* ── サービス選択グリッド ── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.service-card input[type="checkbox"] {
  display: none;
}

.service-card:has(input:checked) {
  border-color: var(--primary);
  background: #EBF2FC;
}

/* Fallback for browsers without :has() support */
.service-card.selected {
  border-color: var(--primary);
  background: #EBF2FC;
}

.service-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.service-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.service-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  justify-content: center;
}

.example-tag {
  font-size: 10px;
  color: var(--primary-dark);
  background: #EBF2FC;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.4;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 20px 0 12px;
  padding-left: 4px;
}

.hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

/* ── ボタン ── */
.btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  margin-bottom: 12px;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:active {
  background: var(--accent-dark);
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 10px;
}

.btn-sm {
  display: inline-block;
  width: auto;
  padding: 10px 20px;
  font-size: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
}

.btn-sm:active {
  background: var(--bg);
}

.btn-line {
  background: var(--line-green);
  color: white;
}

.btn-line:active {
  background: #05B34B;
}

/* ── 権限説明 ── */
.permissions-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.permissions-box h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.permission-service-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 4px;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid var(--bg);
  margin-top: 8px;
}

.permission-service-header:first-child {
  border-top: none;
  margin-top: 0;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 6px 20px;
  font-size: 13px;
  color: var(--text-secondary);
}


.permission-example-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 0 4px 20px;
}

.permission-example-item {
  font-size: 12px;
  color: var(--primary-dark);
  background: #EBF2FC;
  padding: 6px 12px;
  margin: 4px 0 4px 20px;
  border-radius: 6px;
}

.permissions-note {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.5;
}

/* ── LINE設定ステップ ── */
.line-steps {
  margin-bottom: 20px;
}

.line-step {
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.line-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
}

.line-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.line-step-title {
  font-size: 15px;
  font-weight: 600;
}

.line-step-body {
  padding: 16px;
}

.line-step-body p {
  font-size: 14px;
  margin-bottom: 12px;
}

.line-step-body ul {
  font-size: 14px;
}

.simple-list {
  list-style: none;
  padding: 0;
}

.simple-list li {
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.simple-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ── 入力フィールド ── */
.input-group {
  margin: 12px 0;
}

.input-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus {
  border-color: var(--primary);
}

.validation-status {
  font-size: 13px;
  margin-top: 6px;
  min-height: 20px;
}

.validation-status.success {
  color: var(--success);
}

.validation-status.error {
  color: var(--error);
}

/* ── スピナー ── */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 完了画面 ── */
.complete-icon, .error-icon {
  font-size: 64px;
  text-align: center;
  margin: 30px 0 16px;
}

.usage-examples {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.usage-examples h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.example-card {
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.example-card:last-child {
  margin-bottom: 0;
}

/* ── セットアップログ ── */
.setup-log {
  text-align: left;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 12px;
  margin-top: 20px;
  font-size: 13px;
  max-height: 200px;
  overflow-y: auto;
}

.setup-log-item {
  padding: 4px 0;
  color: var(--text-secondary);
}

.setup-log-item.done {
  color: var(--success);
}

.setup-log-item.active {
  color: var(--text);
}

/* ── サポートボックス ── */
.support-box {
  text-align: center;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-top: 20px;
}

.support-box p {
  font-size: 14px;
  margin: 4px 0;
}

/* ── フッター ── */
.footer {
  text-align: center;
  padding: 24px 0;
  color: var(--text-secondary);
  font-size: 12px;
}

/* ── スクリーンショット・ヒント ── */
.step-screenshot {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 0 4px;
  display: block;
}

.screenshot-caption {
  font-size: 12px;
  color: var(--primary-dark);
  margin: 0 0 16px;
  font-weight: 500;
}

.hint-box {
  background: #FFF8E7;
  border: 1px solid #FFE4A0;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
}

.hint-box p {
  font-size: 12px;
  color: #8B6914;
  line-height: 1.5;
  margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LP セクション
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.lp-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ヘッダー ── */
.lp-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e4e2dd;
  position: sticky;
  top: 0;
  z-index: 100;
}

.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.lp-logo {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.lp-header-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 6px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.lp-header-cta:hover {
  background: var(--accent-dark);
}

/* ── ヒーロー ── */
.lp-hero {
  background: linear-gradient(180deg, #f5f3ee 0%, #fbf9f4 100%);
  padding: 56px 0 64px;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.lp-hero-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.lp-hero-text {
  max-width: 520px;
}

.lp-hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #06C755;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  background: #e6f9ed;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid #a3e4b8;
}

.lp-hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.lp-hero-title em {
  font-style: normal;
  color: var(--line-green);
}

.lp-hero-desc {
  font-size: 15px;
  color: #544438;
  line-height: 1.9;
  margin-bottom: 32px;
}

.lp-hero-desc strong {
  color: #1a1a1a;
  font-weight: 700;
}

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

.lp-hero-note {
  font-size: 12px;
  color: #867366;
}

.lp-btn-lg {
  padding: 16px 48px;
  font-size: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(6,199,85,0.3);
  background: var(--accent);
  color: #fff;
}

.lp-btn-lg:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 24px rgba(6,199,85,0.4);
}

/* メインボタン */
.lp-btn-main {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(6,199,85,0.25);
}

.lp-btn-main:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(6,199,85,0.35);
}

.lp-btn-inv {
  background: #fff;
  color: var(--line-green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-weight: 700;
}

.lp-btn-inv:hover {
  background: #f0faf4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.lp-btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--line-green);
  box-shadow: none;
  margin-left: 12px;
}

.lp-btn-secondary:hover {
  background: #f0faf4;
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  box-shadow: none;
}

@media (max-width: 480px) {
  .lp-hero-actions {
    flex-direction: column;
  }
  .lp-btn-secondary {
    margin-left: 0;
  }
}

/* ── ヒーロー Before/After ── */
.lp-hero-ba {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.lp-hero-ba-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.lp-hero-ba-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.lp-hero-ba-before span:last-child {
  color: #867366;
}

.lp-hero-ba-after span:last-child {
  color: var(--line-green);
  font-weight: 600;
}

.lp-hero-ba-arrow {
  color: var(--line-green);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .lp-hero-ba {
    flex-direction: column;
    gap: 4px;
  }
  .lp-hero-ba-arrow {
    transform: rotate(90deg);
  }
}

/* チャットモック */
.lp-hero-visual {
  max-width: 380px;
}

.lp-chat-mock {
  background: #e4e2dd;
  border: 1px solid #e0ddd8;
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.lp-chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 85%;
}

.lp-chat-user {
  background: #06C755;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.lp-chat-ai {
  background: #fff;
  color: #1b1c19;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.lp-chat-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--line-green);
  margin-bottom: 4px;
}

.lp-chat-action {
  display: block;
  font-size: 11px;
  color: #867366;
  margin-top: 6px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .lp-hero-layout {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .lp-hero-title { font-size: 36px; }
  .lp-hero-desc { font-size: 16px; }
  .lp-hero-visual { flex-shrink: 0; }
}

/* ── 数字バー ── */
.lp-stats {
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 2;
}

.lp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 16px;
  margin-top: -32px;
  padding: 28px 16px;
  border: 1px solid #e4e2dd;
  box-shadow:
    0 2px 4px rgba(144,77,0,0.04),
    0 8px 24px rgba(144,77,0,0.08);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.lp-stat {
  text-align: center;
  padding: 8px 0;
}

.lp-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--line-green);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.lp-stat-num span {
  font-size: 14px;
  font-weight: 600;
}

.lp-stat-num.lp-stat-text {
  font-size: 22px;
}

.lp-stat-label {
  font-size: 11px;
  color: #544438;
  font-weight: 500;
}

@media (max-width: 480px) {
  .lp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: -24px;
  }
}

/* ── セクション共通 ── */
.lp-section {
  padding: 64px 0;
  background: #fff;
}

.lp-section-alt {
  background: #f5f3ee;
}

.lp-sec-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.lp-sec-sub {
  text-align: center;
  font-size: 14px;
  color: #544438;
  margin-bottom: 40px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .lp-section { padding: 80px 0; }
  .lp-sec-title { font-size: 28px; }
  .lp-sec-sub { font-size: 15px; }
}

/* ── ChatGPT比較 ── */
.lp-compare {
  display: grid;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  align-items: stretch;
}

.lp-compare-vs {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #867366;
  padding: 8px 0;
}

.lp-compare-item {
  padding: 24px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.lp-compare-bad {
  background: #f5f3ee;
  border: 1px solid #e4e2dd;
}

.lp-compare-good {
  background: linear-gradient(135deg, #f0faf4 0%, #e6f9ed 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(6,199,85,0.12);
}

.lp-compare-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.lp-compare-bad .lp-compare-label { color: #867366; }
.lp-compare-good .lp-compare-label { color: var(--line-green); }

.lp-compare-chat {
  margin-bottom: 12px;
}

.lp-compare-q {
  font-size: 13px;
  color: #1b1c19;
  margin-bottom: 6px;
}

.lp-compare-a {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.lp-compare-note {
  font-size: 12px;
  color: #544438;
  border-top: 1px solid #e4e2dd;
  padding-top: 10px;
}

.lp-compare-good .lp-compare-note {
  color: var(--line-green);
  border-color: rgba(6,199,85,0.2);
}

@media (min-width: 640px) {
  .lp-compare {
    grid-template-columns: 1fr auto 1fr;
  }
  .lp-compare-vs {
    display: flex;
    align-items: center;
    padding: 0 12px;
  }
}

/* ── 機能 ── */
.lp-features {
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .lp-features { grid-template-columns: 1fr 1fr 1fr; }
}

.lp-feat {
  padding: 0;
  text-align: left;
}

.lp-feat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.lp-feat h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.lp-feat p {
  font-size: 13px;
  color: #544438;
  line-height: 1.8;
}

/* ── 対応業種 ── */
.lp-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto 16px;
}

.lp-industries span {
  background: #f5f3ee;
  color: #544438;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid #e4e2dd;
}

.lp-industries-note {
  text-align: center;
  font-size: 12px;
  color: #544438;
}

/* ── 料金 ── */
.pricing-includes {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 32px;
}

.pricing-includes li {
  font-size: 14px;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: #1b1c19;
}

.pricing-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.lp-small-note {
  text-align: center;
  font-size: 12px;
  color: #544438;
  margin-top: 12px;
}

.lp-section .lp-btn-main {
  display: block;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

/* ── 他社比較テーブル ── */
.lp-section-competitor {
  background: #fff;
}

.lp-competitor-table-wrap {
  max-width: 680px;
  margin: 0 auto 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lp-competitor-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.6;
}

.lp-competitor-table th,
.lp-competitor-table td {
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
}

.lp-competitor-table thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lp-competitor-table th.lp-ct-label,
.lp-competitor-table td.lp-ct-label {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #544438;
  background: transparent;
  width: 28%;
}

.lp-competitor-table th.lp-ct-other {
  color: #867366;
  background: #f7f5f3;
  border-radius: 12px 12px 0 0;
}

.lp-competitor-table td.lp-ct-other {
  color: #867366;
  background: #f7f5f3;
  font-size: 13px;
}

.lp-competitor-table tbody tr:last-child td.lp-ct-other {
  border-radius: 0 0 12px 12px;
}

.lp-competitor-table th.lp-ct-us {
  color: var(--line-green);
  background: linear-gradient(135deg, #f0faf4 0%, #e6f9ed 100%);
  border-radius: 12px 12px 0 0;
  border-top: 3px solid var(--accent);
}

.lp-competitor-table td.lp-ct-us {
  background: linear-gradient(135deg, #f0faf4 0%, #e6f9ed 100%);
  color: #1a1a1a;
  font-size: 13px;
}

.lp-competitor-table tbody tr:last-child td.lp-ct-us {
  border-radius: 0 0 12px 12px;
}

.lp-ct-price-other {
  font-size: 18px;
  font-weight: 700;
  color: #867366;
  text-decoration: line-through;
  text-decoration-color: #ccc;
}

.lp-ct-price-us {
  font-size: 24px;
  font-weight: 900;
  color: var(--line-green);
  letter-spacing: -0.02em;
}

.lp-competitor-table td.lp-ct-us strong {
  color: var(--accent-dark);
}

.lp-ct-highlight {
  text-align: center;
  margin: 0 auto;
  max-width: 480px;
}

.lp-ct-highlight-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f0faf4 0%, #e6f9ed 100%);
  display: inline-block;
  padding: 12px 32px;
  border-radius: 100px;
  border: 2px solid var(--accent);
}

.lp-ct-highlight-text strong {
  color: var(--line-green);
  font-size: 24px;
}

@media (max-width: 480px) {
  .lp-competitor-table th,
  .lp-competitor-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  .lp-ct-price-other { font-size: 15px; }
  .lp-ct-price-us { font-size: 20px; }
  .lp-ct-highlight-text { font-size: 15px; padding: 10px 20px; }
  .lp-ct-highlight-text strong { font-size: 20px; }
  .lp-competitor-table th.lp-ct-label,
  .lp-competitor-table td.lp-ct-label {
    font-size: 11px;
    width: 25%;
  }
}

@media (min-width: 768px) {
  .lp-competitor-table { font-size: 15px; }
  .lp-ct-price-us { font-size: 28px; }
  .lp-ct-price-other { font-size: 20px; }
  .lp-ct-highlight-text { font-size: 20px; }
  .lp-ct-highlight-text strong { font-size: 28px; }
}

/* ── FAQ ── */
.lp-faq {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e4e2dd;
}

.lp-faq-item {
  border-bottom: 1px solid #e4e2dd;
  background: transparent;
  border-radius: 0;
}

.lp-faq-item summary {
  padding: 18px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1b1c19;
}

.lp-faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 300;
  color: #867366;
  flex-shrink: 0;
  margin-left: 16px;
}

.lp-faq-item[open] summary::after {
  content: "−";
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item p {
  padding: 0 0 18px;
  font-size: 13px;
  color: #544438;
  line-height: 1.8;
}

/* ── 信頼バッジ ── */
.lp-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  opacity: 0.7;
}

.lp-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #544438;
}

.lp-trust-badge-icon {
  font-size: 18px;
}

@media (max-width: 480px) {
  .lp-trust-badges {
    gap: 16px;
  }
  .lp-trust-badge {
    font-size: 11px;
  }
}

/* ── 最終CTA ── */
.lp-section-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.lp-section-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(6, 199, 85, 0.08);
  border-radius: 50%;
  filter: blur(80px);
}

.lp-section-cta::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(144, 77, 0, 0.08);
  border-radius: 50%;
  filter: blur(80px);
}

.lp-cta-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.lp-cta-sub {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .lp-cta-title { font-size: 28px; }
}

/* ── プラン選択 ── */
.plan-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto 24px;
  max-width: 600px;
}

@media (min-width: 640px) {
  .plan-selector { flex-direction: row; }
  .plan-option { flex: 1; }
}

.plan-option {
  cursor: pointer;
}

.plan-option input[type="radio"] {
  display: none;
}

.plan-card {
  position: relative;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.plan-option input:checked + .plan-card,
.plan-card.selected {
  border-color: var(--primary);
  background: #EBF2FC;
}

.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0;
}

.plan-yen {
  font-size: 16px;
  font-weight: 700;
}

.plan-period {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 2px;
}

.plan-per-month {
  font-size: 12px;
  color: var(--text-secondary);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--error);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── オンボーディング（完了画面） ── */
.onboarding-section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.onboarding-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.onboarding-step-header strong {
  font-size: 15px;
}

.onboarding-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.onboarding-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.onboarding-comparison {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-item {
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.comparison-bad {
  background: #FFF0F0;
  border: 1px solid #FFD0D0;
}

.comparison-good {
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
}

.comparison-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.comparison-note {
  font-size: 12px;
  color: var(--text-secondary);
}

.try-this-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.try-this-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.try-this-card:active {
  background: #E8E8ED;
  transform: scale(0.98);
}

.try-this-card.copied {
  border-color: var(--success);
  background: #F0FFF4;
}

.try-this-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.try-this-message {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: break-word;
}

.try-this-copy {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 6px;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tip-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.tip-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ━━━ Step 2: Business Profile ━━━ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-label .required { color: #e74c3c; font-size: 0.85em; margin-left: 4px; }
.form-label .hint-inline { color: var(--text-secondary); font-size: 0.85em; margin-left: 4px; }
.form-select {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; background: var(--card-bg, #fff); color: var(--text);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.form-input, .form-textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; background: var(--card-bg, #fff); color: var(--text);
  box-sizing: border-box;
}
.form-textarea { resize: vertical; font-family: inherit; }
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option, .checkbox-option {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--card-bg, #fff); border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: border-color 0.2s;
}
.radio-option:hover, .checkbox-option:hover { border-color: var(--primary); }
.radio-option input:checked + span, .checkbox-option input:checked + span { font-weight: 600; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0 8px; }
.optional-label { color: var(--text-secondary); font-size: 0.9em; margin-bottom: 16px; }

/* ── レスポンシブ ── */
@media (max-width: 360px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .plan-price {
    font-size: 20px;
  }
}

/* LINE設定の進捗ドット */
.line-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}
.line-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}
.line-dot.done {
  background: var(--success);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LP 追加セクション
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── スマホモックアップ ── */
.lp-phone-frame {
  background: #fff;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.lp-phone-notch {
  width: 100px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 0;
  position: relative;
  z-index: 2;
}

.lp-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #f8f8f8;
  border-bottom: 1px solid #e4e2dd;
  font-size: 14px;
}

.lp-phone-back {
  font-size: 20px;
  color: #06C755;
  font-weight: 600;
}

.lp-phone-name {
  font-weight: 700;
  color: #1a1a1a;
}

.lp-phone-dots {
  font-size: 18px;
  color: #06C755;
}

.lp-phone-frame .lp-chat-mock {
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: #e4e2dd;
  backdrop-filter: none;
  padding: 16px 12px;
}

.lp-phone-frame .lp-chat-bubble {
  font-size: 13px;
}

/* ── お悩みセクション ── */
.lp-section-problems {
  padding: 64px 0;
}

.lp-problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.lp-problem {
  background: #fff;
  border: 1px solid #e4e2dd;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lp-problem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.lp-problem-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.lp-problem p {
  font-size: 13px;
  color: #544438;
  line-height: 1.7;
}

.lp-problems-bridge {
  text-align: center;
  font-size: 15px;
  color: #1b1c19;
  line-height: 1.8;
}

.lp-problems-bridge strong {
  color: var(--line-green);
}

@media (max-width: 480px) {
  .lp-problems-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lp-problem {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 16px;
  }
  .lp-problem-icon {
    font-size: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .lp-problem p br { display: none; }
}

/* ── 使い方3ステップ ── */
.lp-steps-3 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.lp-step3 {
  text-align: center;
  flex: 1;
  max-width: 220px;
}

.lp-step3-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.lp-step3-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.lp-step3 h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.lp-step3 p {
  font-size: 13px;
  color: #544438;
  line-height: 1.7;
}

.lp-step3-arrow {
  font-size: 24px;
  color: #ccc;
  font-weight: 300;
  margin-top: 48px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .lp-steps-3 {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .lp-step3 { max-width: 100%; }
  .lp-step3-arrow {
    transform: rotate(90deg);
    margin-top: 0;
  }
}

/* ── できること（ユースケース） ── */
.lp-usecases {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .lp-usecases { grid-template-columns: 1fr 1fr; }
}

.lp-usecase {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e4e2dd;
}

.lp-usecase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lp-usecase-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.lp-usecase-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.lp-usecase p {
  font-size: 13px;
  color: #544438;
  line-height: 1.8;
  margin: 0;
}

/* ── 導入者の声 ── */
.lp-testimonials {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .lp-testimonials { grid-template-columns: 1fr 1fr 1fr; }
}

.lp-testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  border: 1px solid #e4e2dd;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-testimonial-quote {
  font-size: 13px;
  color: #444;
  line-height: 1.8;
  flex: 1;
}

.lp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.lp-testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.lp-testimonial-role {
  font-size: 12px;
  color: #867366;
}

/* ── 会話シナリオ ── */
.lp-scenarios {
  display: grid;
  gap: 32px;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .lp-scenarios {
    grid-template-columns: 1fr 1fr;
    max-width: 820px;
    gap: 28px;
  }
}

.lp-scenario-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--line-green);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-align: center;
}

.lp-phone-frame-sm {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

/* ── モバイルスティッキーCTA ── */
.lp-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e4e2dd;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 99;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.lp-sticky-cta.visible {
  transform: translateY(0);
}

.lp-sticky-btn {
  flex: 1;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.lp-sticky-btn:hover {
  background: var(--accent-dark);
}

.lp-sticky-note {
  font-size: 11px;
  color: #867366;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .lp-sticky-cta { display: none; }
}

/* ── マイクロコピー ── */
.lp-micro-copy {
  font-size: 12px;
  color: #867366;
  margin-top: 10px;
}

.lp-cta-micro {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
}

/* ── 1日あたり料金 ── */
.plan-daily {
  font-size: 12px;
  color: var(--line-green);
  font-weight: 600;
  margin-top: 4px;
}

/* ── 割引バッジ ── */
.lp-badge-save {
  background: var(--accent) !important;
}

/* ── フェードインアニメーション ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
