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

:root {
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-bg: #eff6ff;
  --accent-border: #bfdbfe;
  --green: #059669;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  --yellow: #d97706;
  --yellow-bg: #fffbeb;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --ink: #111827;
  --ink-sub: #4b5563;
  --ink-muted: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.header {
  background: var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.logo span {
  color: #fff;
  opacity: 0.75;
  font-weight: 700;
}

.result-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 3px 12px;
  border-radius: 100px;
}

/* ===== Hero ===== */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.hero-text {
  margin-bottom: 32px;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-size: 1.3em;
  display: block;
  margin-top: 4px;
}

.hero-desc {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.8;
}

.hero-desc strong {
  color: var(--ink);
}

@media (min-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero h1 em { font-size: 1.35em; }
  .hero-desc { font-size: 15px; }
}

/* Problem Cards */
.problem-cards {
  display: grid;
  gap: 12px;
}

.p-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.p-card p {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.7;
}

.p-card strong {
  color: var(--ink);
  font-weight: 700;
}

/* ===== Form ===== */
.form-section {
  padding: 40px 20px;
  background: var(--bg);
}

.form-section-inner {
  max-width: 480px;
  margin: 0 auto;
}

.form-card {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.form-head {
  text-align: center;
  margin-bottom: 24px;
}

.form-head h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}

.form-head p {
  font-size: 13px;
  color: var(--ink-muted);
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.field input::placeholder { color: var(--ink-muted); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--bg);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:active { transform: scale(0.985); }

.btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sm {
  width: auto;
  padding: 11px 20px;
  font-size: 14px;
  white-space: nowrap;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 14px;
}

/* ===== How Section ===== */
.how-section {
  padding: 56px 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 720px;
  margin: 0 auto;
}

.sec-title {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 32px;
}

.how-steps {
  display: grid;
  gap: 16px;
}

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

.how-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.step-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.how-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.how-step p {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
}

/* ===== Why Section ===== */
.why-section {
  padding: 56px 20px;
  background: var(--bg);
}

.why-inner {
  max-width: 720px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  gap: 14px;
}

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

.why-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.why-stat {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.6;
}

.why-card small {
  color: var(--ink-muted);
  font-size: 11px;
}

/* ===== Sticky CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  z-index: 90;
  display: none;
}

.sticky-cta.show { display: block; }

.btn-sticky {
  display: block;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  padding: 12px;
}

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

/* ===== Loading ===== */
.loading-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loading-inner {
  text-align: center;
  max-width: 340px;
  width: 100%;
  padding: 20px;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.loading-inner h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.loading-query {
  font-size: 14px;
  color: var(--ink-sub);
  margin-bottom: 28px;
}

.check-list {
  list-style: none;
  text-align: left;
  max-width: 240px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.check-list li.checking {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-bg);
  font-weight: 700;
}

.check-list li.done {
  color: var(--green);
  border-color: var(--green-border);
  background: var(--green-bg);
  font-weight: 700;
}

.cl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s;
}

.check-list li.checking .cl-dot {
  background: var(--accent);
  animation: pulse-dot 1s infinite;
}

.check-list li.done .cl-dot { background: var(--green); }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

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

.loading-time {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ===== Result Page ===== */
.result-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.result-store {
  text-align: center;
  padding: 28px 0 20px;
}

.result-store h1 {
  font-size: 22px;
  font-weight: 900;
}

.result-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Score Card */
.score-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.score-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.score-card.score-high::before { background: var(--green); }
.score-card.score-mid::before { background: var(--yellow); }
.score-card.score-low::before { background: var(--red); }

.score-top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.score-num {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-card.score-high .score-num { color: var(--green); }
.score-card.score-mid .score-num { color: var(--yellow); }
.score-card.score-low .score-num { color: var(--red); }

.score-of {
  font-size: 16px;
  color: var(--ink-muted);
  font-weight: 500;
}

.score-bar-wrap { margin-bottom: 14px; }

.score-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s ease-out;
}

.score-card.score-high .score-bar-fill { background: var(--green); }
.score-card.score-mid .score-bar-fill { background: var(--yellow); }
.score-card.score-low .score-bar-fill { background: var(--red); }

.score-desc {
  font-size: 14px;
  color: var(--ink-sub);
  font-weight: 500;
}

/* LLM Grid */
.llm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.llm-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}

.llm-card.found {
  border-color: var(--green-border);
  background: var(--green-bg);
}

.llm-card .llm-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-sub);
  margin-bottom: 8px;
}

.llm-card .llm-status {
  font-size: 28px;
  margin-bottom: 4px;
}

.llm-card .llm-detail {
  font-size: 12px;
  font-weight: 600;
}

.llm-card.found .llm-detail { color: var(--green); }
.llm-card.not-found .llm-detail { color: var(--ink-muted); }

/* Gate */
.gate-card {
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.gate-card h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}

.gate-card > p {
  font-size: 13px;
  color: var(--ink-sub);
  margin-bottom: 18px;
  line-height: 1.7;
}

.gate-form {
  display: flex;
  gap: 8px;
}

.gate-form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}

.gate-form input::placeholder { color: var(--ink-muted); }

.gate-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.gate-note {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 10px;
}

/* Detail */
.detail-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  animation: fadeIn 0.4s ease;
}

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

.detail-block h3 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-alt);
}

.recommendation-item {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 11px 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
}

.comp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.competitor-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--ink-sub);
  font-weight: 500;
}

/* CTA */
.cta-card {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-top: 20px;
}

.cta-card h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cta-card p {
  font-size: 13px;
  color: var(--ink-sub);
  margin-bottom: 18px;
  line-height: 1.7;
}

.btn-line {
  display: block;
  padding: 14px 20px;
  background: #06c755;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-line:hover { background: #05b34b; }
