/* ====================================
   解約導線システム — 共通スタイル
   ==================================== */

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

:root {
  --primary: #f39100;
  --primary-light: #ffb547;
  --primary-dark: #d97700;
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--gray-800);
}

/* ---- Container ---- */
.container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

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

.container-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 28px 32px;
  color: white;
}

.container-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.container-header p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 6px;
  font-weight: 300;
}

.container-body {
  padding: 32px;
}

/* ---- Step indicator ---- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 32px 0;
  background: white;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

.step.active {
  color: var(--primary);
}

.step.completed {
  color: var(--success);
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-400);
  flex-shrink: 0;
}

.step.active .step-number {
  background: var(--primary);
  color: white;
}

.step.completed .step-number {
  background: var(--success);
  color: white;
}

.step-line {
  width: 32px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 4px;
  flex-shrink: 0;
}

.step-line.completed {
  background: var(--success);
}

/* ---- Form ---- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.1em;
  text-align: center;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-group input::placeholder {
  color: var(--gray-300);
  letter-spacing: 0.05em;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: white;
  color: var(--gray-600);
  border: 2px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

/* ---- Info card ---- */
.info-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-100);
}

.info-card .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-card .info-row:last-child {
  border-bottom: none;
}

.info-card .info-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 500;
}

.info-card .info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* ---- Alert ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.alert.show {
  display: block;
}

.alert-error {
  background: var(--danger-light);
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-success {
  background: var(--success-light);
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-warning {
  background: var(--warning-light);
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* ---- Icon ---- */
.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.icon-circle.success {
  background: var(--success-light);
}

.icon-circle.warning {
  background: var(--warning-light);
}

.icon-circle.info {
  background: #DBEAFE;
}

/* ---- Message page ---- */
.message-page {
  text-align: center;
  padding: 12px 0;
}

.message-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-800);
}

.message-page p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ---- Options ---- */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.option-card:hover {
  border-color: var(--primary-light);
  background: rgba(79, 70, 229, 0.03);
  transform: translateX(4px);
}

.option-card .option-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.option-card .option-icon.continue {
  background: var(--success-light);
}

.option-card .option-icon.change {
  background: #DBEAFE;
}

.option-card .option-icon.cancel {
  background: var(--danger-light);
}

.option-card .option-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.option-card .option-text p {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin: 0;
}

.option-card .option-arrow {
  margin-left: auto;
  color: var(--gray-300);
  font-size: 1.2rem;
}

/* ---- Loading spinner ---- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* ---- Responsive ---- */
@media (max-width: 520px) {
  body {
    padding: 0;
    align-items: flex-start;
  }

  .container {
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
  }

  .container-header {
    padding: 24px 20px;
  }

  .container-body {
    padding: 24px 20px;
  }

  .steps {
    padding: 16px 20px 0;
  }
}
