@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
  line-height: 1.6;
}

.lw_register_page {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  padding: 40px;
}

@media (max-width: 768px) {
  .lw_register_page {
    padding: 20px;
    padding-top: 40px;
  }
}

.lw_register_page.step_1 {
  max-width: 700px;
}

.lw_register_page .logo {
  text-align: center;
  margin-bottom: 30px;
}

.lw_register_page .logo h1 {
  color: #1e5bb8;
  font-size: 32px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .lw_register_page .logo h1 {
    font-size: 24px;
  }
}

.lw_register_page .logo p {
  margin-top: 8px;
  line-height: 1.6em;
}

@media (max-width: 700px) {
  .lw_register_page .logo p {
    font-size: 14px;
  }
}

.lw_register_page .progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.lw_register_page .progress-bar::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.lw_register_page .progress-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

@media (max-width: 768px) {
  .lw_register_page .progress-step {
    font-size: 10px;
  }
}

.lw_register_page .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #999;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .lw_register_page .step-circle {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

.lw_register_page .step-circle.active {
  background: #1e5bb8;
  color: white;
}

.lw_register_page .step-circle.completed {
  background: #4caf50;
  color: white;
}

.lw_register_page .step-label {
  font-size: 12px;
  color: #666;
}

@media (max-width: 500px) {
  .lw_register_page .step-label {
    font-size: 10px;
  }
}

.lw_register_page .form-section {
  display: none;
}

.lw_register_page .form-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.lw_register_page h2 {
  color: #333;
  margin-bottom: 24px;
  font-size: 24px;
  text-align: center;
}

@media (max-width: 600px) {
  .lw_register_page h2 {
    font-size: 20px;
  }
}

.lw_register_page h2 + p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.8em;
}

@media (max-width: 600px) {
  .lw_register_page h2 + p {
    font-size: 14px;
  }
}

.lw_register_page .form-group {
  margin-bottom: 20px;
}

.lw_register_page .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 14px;
}

.lw_register_page .form-group input[type="text"],
.lw_register_page .form-group input[type="email"],
.lw_register_page .form-group input[type="password"],
.lw_register_page .form-group input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.lw_register_page .form-group input[type="text"]:focus,
.lw_register_page .form-group input[type="email"]:focus,
.lw_register_page .form-group input[type="password"]:focus,
.lw_register_page .form-group input[type="tel"]:focus {
  outline: none;
  border-color: #1e5bb8;
}

.lw_register_page .password-requirements {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.lw_register_page .btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.lw_register_page .btn-primary {
  background: #1e5bb8;
  color: white;
}

.lw_register_page .btn-primary:hover {
  background: #1547a0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 91, 184, 0.3);
}

.lw_register_page .btn-secondary {
  background: #f0f0f0;
  color: #333;
  margin-top: 10px;
}

.lw_register_page .btn-secondary:hover {
  background: #e0e0e0;
}

.lw_register_page .verification-code {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}

.lw_register_page .verification-code .code-input {
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #ddd;
  border-radius: 8px;
}

.lw_register_page .verification-code .code-input:focus {
  border-color: #1e5bb8;
}

.lw_register_page .plan-selection {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.lw_register_page .plan-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.lw_register_page .plan-card:hover {
  border-color: #1e5bb8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lw_register_page .plan-card.selected {
  border-color: #1e5bb8;
  background: #f0f6ff;
}

.lw_register_page .plan-card.premium-card {
  position: relative;
  overflow: visible;
}

.lw_register_page .plan-card.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(103, 126, 234, 0.2);
}

.lw_register_page .plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lw_register_page .plan-name {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.lw_register_page .plan-price {
  font-size: 24px;
  font-weight: bold;
  color: #1e5bb8;
}

.lw_register_page .plan-features {
  list-style: none;
  color: #666;
}

.lw_register_page .plan-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.lw_register_page .plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.lw_register_page .recommended {
  background: #ff6b6b;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

.lw_register_page .payment-form {
  background: #f9f9f9;
  padding: 24px;
  border-radius: 8px;
  margin: 20px 0;
}

.lw_register_page .card-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.lw_register_page .success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}

.lw_register_page .download-section {
  text-align: center;
  padding: 20px;
}

.lw_register_page .download-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .lw_register_page .download-buttons {
    grid-template-columns: 1fr;
  }
}

.lw_register_page .download-btn {
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
}

.lw_register_page .download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.lw_register_page .terms {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 20px;
}

.lw_register_page .terms a {
  color: #1e5bb8;
  text-decoration: none;
}

.lw_register_page .terms a:hover {
  text-decoration: underline;
}

.lw_register_page .error-message {
  color: #f44336;
  font-size: 12px;
  margin-top: 4px;
}

.lw_register_page .loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top-color: #1e5bb8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.lw_register_page details summary::-webkit-details-marker {
  display: none;
}

.lw_register_page details summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s;
}

.lw_register_page details[open] summary::before {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .lw_register_page #payment-grid {
    grid-template-columns: 1fr !important;
  }
}

/* アニメーション定義 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
