/* Lincoln Stripe Checkout v2 */
.lnc-checkout-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 0;
  font-family: 'Noto Sans JP', sans-serif;
}

/* テストモードバナー */
.lnc-checkout-testmode {
  background: #fff3cd;
  color: #856404;
  padding: 10px 16px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9em;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid #ffc107;
}

/* ステップインジケーター */
.lnc-checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 32px;
}
.lnc-step {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.lnc-step.active, .lnc-step.done { opacity: 1; }
.lnc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a2a4a;
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
}
.lnc-step.done .lnc-step-num { background: #27ae60; }
.lnc-step-label { font-size: 0.9em; font-weight: 500; color: #333; }
.lnc-step-arrow { color: #ccc; font-size: 1.2em; }

/* パネル */
.lnc-checkout-panel {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.lnc-checkout-title {
  font-size: 1.3em;
  color: #1a2a4a;
  margin: 0 0 24px;
  text-align: center;
}

/* プランカード */
.lnc-plan-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.lnc-plan-card {
  position: relative;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  text-align: center;
}
.lnc-plan-card:hover { border-color: #2a7de1; }
.lnc-plan-card.selected {
  border-color: #2a7de1;
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(42,125,225,0.15);
}
.lnc-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #e63e3e;
  color: #fff;
  padding: 2px 16px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 700;
  white-space: nowrap;
}
.lnc-plan-card h3 {
  margin: 8px 0 8px;
  font-size: 1.15em;
  color: #1a2a4a;
}
.lnc-plan-desc {
  font-size: 0.85em;
  color: #666;
  margin: 0 0 12px;
}

/* プランタブ（月額/年額切替） */
.lnc-interval-tabs {
  display: inline-flex;
  gap: 4px;
  background: #eee;
  border-radius: 20px;
  padding: 3px;
  margin-bottom: 12px;
}
.lnc-interval-tab {
  padding: 6px 16px;
  border-radius: 18px;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
  font-weight: 500;
}
.lnc-interval-tab.active {
  background: #2a7de1;
  color: #fff;
  font-weight: 700;
}
.lnc-interval-tab input[type="radio"] { display: none; }

.lnc-plan-price { margin-bottom: 16px; }
.lnc-price-amount {
  font-size: 2em;
  font-weight: 900;
  color: #1a2a4a;
}
.lnc-price-period {
  font-size: 0.85em;
  color: #666;
}
.lnc-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.lnc-plan-features li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9em;
  color: #444;
}
.lnc-plan-features li::before {
  content: '\2713';
  color: #27ae60;
  font-weight: 700;
  margin-right: 8px;
}

/* オプションセクション */
.lnc-options-section {
  margin-bottom: 24px;
}
.lnc-options-title {
  font-size: 1.05em;
  color: #1a2a4a;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}
.lnc-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lnc-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.lnc-option-item:hover { border-color: #2a7de1; background: #fafcff; }
.lnc-option-item.checked {
  border-color: #2a7de1;
  background: #f0f7ff;
}
.lnc-option-check { flex-shrink: 0; }
.lnc-option-info { flex: 1; }
.lnc-option-name { display: block; font-weight: 500; font-size: 0.95em; color: #333; }
.lnc-option-desc { display: block; font-size: 0.8em; color: #888; margin-top: 2px; }
.lnc-option-price {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9em;
  color: #2a7de1;
  white-space: nowrap;
}

/* 合計バー */
.lnc-total-bar {
  background: #1a2a4a;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.05em;
}
.lnc-total-amount {
  font-size: 1.6em;
  font-weight: 900;
  margin: 0 4px;
}
.lnc-total-period {
  font-size: 0.85em;
  opacity: 0.8;
}

/* 注文サマリ（Step2） */
.lnc-order-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.9em;
}
.lnc-summary-title {
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}
.lnc-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: #444;
}
.lnc-summary-option { font-size: 0.9em; color: #666; padding-left: 12px; }
.lnc-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #1a2a4a;
  font-weight: 900;
  color: #1a2a4a;
  font-size: 1.1em;
}

/* フォーム */
.lnc-form-group { margin-bottom: 20px; }
.lnc-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9em;
  color: #333;
}
.lnc-form-group input[type="text"],
.lnc-form-group input[type="email"],
.lnc-form-group input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.lnc-form-group input:focus {
  outline: none;
  border-color: #2a7de1;
  box-shadow: 0 0 0 3px rgba(42,125,225,0.1);
}
.lnc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lnc-required { color: #e63e3e; font-size: 0.8em; font-weight: 700; }
.lnc-form-help { font-size: 0.8em; color: #888; margin-top: 4px; }
.lnc-form-group input[type="checkbox"] { margin-right: 6px; }
.lnc-form-group a { color: #2a7de1; text-decoration: underline; }

/* エラー表示 */
.lnc-form-errors {
  background: #fdecea;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9em;
  white-space: pre-line;
}

/* ボタン */
.lnc-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #e63e3e;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
  text-decoration: none;
}
.lnc-btn-primary:hover { background: #c42e2e; transform: translateY(-1px); }
.lnc-btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.lnc-btn-secondary {
  padding: 12px 24px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.3s;
}
.lnc-btn-secondary:hover { background: #e8e8e8; }
.lnc-btn-group { display: flex; gap: 12px; margin-top: 24px; }
.lnc-btn-group .lnc-btn-primary { flex: 1; }

/* リダイレクト中 */
.lnc-redirect-msg { text-align: center; padding: 40px 0; }
.lnc-redirect-msg h2 { color: #1a2a4a; margin: 20px 0 8px; }
.lnc-redirect-msg p { color: #888; }
.lnc-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid #eee;
  border-top-color: #2a7de1;
  border-radius: 50%;
  animation: lnc-spin 0.8s linear infinite;
}
@keyframes lnc-spin { to { transform: rotate(360deg); } }

/* 完了画面 */
.lnc-success-panel {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.lnc-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #27ae60;
  color: #fff;
  font-size: 2em;
  margin-bottom: 16px;
}
.lnc-success-panel h2 { color: #1a2a4a; margin: 0 0 12px; }
.lnc-success-panel p { color: #666; line-height: 1.8; }

/* 利用人数セクション */
.lnc-user-tiers-section {
  margin-bottom: 24px;
}
.lnc-user-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lnc-user-tier-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.lnc-user-tier-item:hover { border-color: #2a7de1; background: #fafcff; }
.lnc-user-tier-item.checked {
  border-color: #2a7de1;
  background: #f0f7ff;
}
.lnc-user-tier-item input[type="radio"] { flex-shrink: 0; }
.lnc-user-tier-label { flex: 1; font-weight: 500; font-size: 0.95em; color: #333; }
.lnc-user-tier-price {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9em;
  color: #2a7de1;
  white-space: nowrap;
}

/* 初期登録費用セクション */
.lnc-registration-fee-section {
  background: #fffbe6;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.lnc-reg-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lnc-reg-fee-label {
  font-weight: 600;
  font-size: 0.95em;
  color: #6d4c00;
}
.lnc-reg-fee-price {
  font-weight: 900;
  font-size: 1.15em;
  color: #b8860b;
}
.lnc-reg-fee-discount {
  margin-top: 6px;
  font-size: 0.85em;
}
.lnc-price-strikethrough {
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
  margin-right: 8px;
}

/* 招待コードセクション */
.lnc-invitation-section {
  margin-bottom: 24px;
}
.lnc-invitation-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lnc-invitation-input-row input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  letter-spacing: 0.15em;
  font-weight: 600;
  box-sizing: border-box;
}
.lnc-invitation-input-row input[type="text"]:focus {
  outline: none;
  border-color: #2a7de1;
  box-shadow: 0 0 0 3px rgba(42,125,225,0.1);
}
.lnc-invitation-input-row .button {
  padding: 10px 20px;
  font-size: 0.95em;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  background: #2a7de1;
  color: #fff;
  border: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.lnc-invitation-input-row .button:hover { background: #1a6dd1; }
.lnc-invitation-input-row .button:disabled { background: #aaa; cursor: not-allowed; }
.lnc-invitation-success {
  margin-top: 8px;
  padding: 8px 12px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
}
.lnc-invitation-error {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fdecea;
  color: #c62828;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
}

/* 人数無制限バッジ */
.lnc-unlimited-badge {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1em;
  text-align: center;
  border: 1px solid #a5d6a7;
}

/* 割引表示 */
.lnc-discount-label {
  color: #2e7d32;
  font-weight: 600;
}
.lnc-discount-amount {
  color: #2e7d32;
  font-weight: 900;
  font-size: 1.15em;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .lnc-checkout-panel { padding: 20px 16px; }
  .lnc-plan-cards { flex-direction: column; align-items: stretch; }
  .lnc-plan-card { max-width: 100%; }
  .lnc-form-row { grid-template-columns: 1fr; }
  .lnc-checkout-steps { gap: 6px; }
  .lnc-step-label { font-size: 0.75em; }
  .lnc-btn-group { flex-direction: column; }
  .lnc-total-bar { padding: 12px 16px; }
  .lnc-total-amount { font-size: 1.3em; }
}
