@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary-color: #ff6b00;
  --primary-hover: #e55a00;
  --primary-light: #fff2e8;
  --accent-color: #00c389;
  --text-main: #2d3748;
  --text-muted: #718096;
  --bg-page: #0f172a;
  --bg-card: #ffffff;
  --border-color: #cbd5e1;
}

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

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

@keyframes floating-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 25px -5px var(--cta-shadow, rgba(255, 107, 0, 0.45)), 0 8px 10px -6px var(--cta-shadow, rgba(255, 107, 0, 0.3));
  }
  50% {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px -5px var(--cta-shadow-hover, rgba(255, 107, 0, 0.55)), 0 12px 14px -6px var(--cta-shadow-hover, rgba(255, 107, 0, 0.4));
  }
}

@keyframes shine-effect {
  0% { left: -100%; }
  20%, 100% { left: 150%; }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

.btn-floating-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.15rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff !important;
  background: var(--cta-bg, linear-gradient(135deg, #ff8c00 0%, #ff5100 50%, #e63900 100%));
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  animation: floating-bounce 2.2s ease-in-out infinite;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-floating-cta:hover {
  transform: translateY(-4px) scale(1.03);
  background: var(--cta-hover-bg, linear-gradient(135deg, #ffa022 0%, #ff6214 50%, #f04207 100%));
  color: #ffffff !important;
}

.btn-floating-cta:active {
  transform: translateY(2px) scale(0.98);
}

/* 7つのCTAカラーテーマ個別定義 */
.btn-floating-cta.cta-theme-orange {
  --cta-bg: linear-gradient(135deg, #ff8c00 0%, #ff5100 50%, #e63900 100%);
  --cta-hover-bg: linear-gradient(135deg, #ffa022 0%, #ff6214 50%, #f04207 100%);
  --cta-shadow: rgba(255, 107, 0, 0.45);
  --cta-shadow-hover: rgba(255, 107, 0, 0.6);
}

.btn-floating-cta.cta-theme-emerald {
  --cta-bg: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --cta-hover-bg: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  --cta-shadow: rgba(16, 185, 129, 0.45);
  --cta-shadow-hover: rgba(16, 185, 129, 0.6);
}

.btn-floating-cta.cta-theme-blue {
  --cta-bg: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #075985 100%);
  --cta-hover-bg: linear-gradient(135deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
  --cta-shadow: rgba(2, 132, 199, 0.45);
  --cta-shadow-hover: rgba(2, 132, 199, 0.6);
}

.btn-floating-cta.cta-theme-red {
  --cta-bg: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  --cta-hover-bg: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  --cta-shadow: rgba(239, 68, 68, 0.45);
  --cta-shadow-hover: rgba(239, 68, 68, 0.6);
}

.btn-floating-cta.cta-theme-yellow {
  --cta-bg: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --cta-hover-bg: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --cta-shadow: rgba(245, 158, 11, 0.45);
  --cta-shadow-hover: rgba(245, 158, 11, 0.6);
}

.btn-floating-cta.cta-theme-purple {
  --cta-bg: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  --cta-hover-bg: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
  --cta-shadow: rgba(139, 92, 246, 0.45);
  --cta-shadow-hover: rgba(139, 92, 246, 0.6);
}

.btn-floating-cta.cta-theme-black {
  --cta-bg: linear-gradient(135deg, #334155 0%, #1e293b 50%, #0f172a 100%);
  --cta-hover-bg: linear-gradient(135deg, #475569 0%, #334155 50%, #1e293b 100%);
  --cta-shadow: rgba(15, 23, 42, 0.45);
  --cta-shadow-hover: rgba(15, 23, 42, 0.6);
}

/* 光が斜めに走るエフェクト */
.btn-floating-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shine-effect 3.5s ease-in-out infinite;
}

.cta-badge {
  position: absolute;
  top: -12px;
  background: #ffe600;
  color: #c43200;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  border: 1px solid #ffd000;
  animation: pulse-ring 2s infinite ease-in-out;
  z-index: 20;
}

.lp-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  box-sizing: border-box;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.section-title-wrap {
  text-align: center;
  position: relative;
  margin-bottom: 1.25rem;
}

.section-title {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a202c;
  position: relative;
  padding-bottom: 0.5rem;
  line-height: 1.3;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  background: var(--primary-color, #ff6b00);
  border-radius: 2px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.step-badge {
  background: var(--primary-color, #ff6b00);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.step-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  padding: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
}

.badge-required {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.2;
}

.badge-optional {
  background-color: #94a3b8;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.2;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  display: block;
}

.form-select {
  appearance: auto;
  cursor: pointer;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--primary-color, #ff6b00);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.form-input.is-invalid, .form-select.is-invalid, .form-group.has-error .form-input, .form-group.has-error .form-select {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.form-helper {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.radio-pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
}

.radio-pill-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  transition: all 0.2s;
  user-select: none;
  box-sizing: border-box;
  text-align: center;
}

.radio-pill-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-pill-label:has(input:checked),
.radio-pill-label.active {
  background: #fff2e8 !important;
  border-color: #ff6b00 !important;
  color: #ff6b00 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 1px #ff6b00;
}

.btn-zip-search {
  white-space: nowrap;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 1.15rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
  flex-shrink: 0;
}
.btn-zip-search:hover {
  background: #334155;
}

.btn-submit {
  width: 100%;
  padding: 1.15rem;
  background: linear-gradient(135deg, #ff6b00 0%, #e55a00 100%);
  color: #ffffff !important;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 107, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 107, 0, 0.45);
}
.btn-submit:active {
  transform: translateY(1px);
}