/* 南勝版ダウンロードフォームスタイル（キーエンススタイル） */

/* リセット */
* {
  box-sizing: border-box;
}

/* 全体レイアウト */
.download-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ヘッダー */
.download-header {
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.logo {
  margin: 0;
  line-height: 1;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

/* メインコンテンツ */
.download-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

.page-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

/* コンテンツレイアウト */
.download-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 左側：ホワイトペーパー情報 */
.whitepaper-info {
  background: #f8f8f8;
  padding: 40px;
}

.whitepaper-card {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
}

.whitepaper-image {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 3/4; /* A4縦のアスペクト比 */
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.whitepaper-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 画像全体を表示 */
}

.whitepaper-details {
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.whitepaper-title {
  font-size: 16px;
  margin: 0 0 15px 0;
  line-height: 1.5;
  font-weight: bold;
  color: #333;
}

.whitepaper-meta {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}


/* Web会員特典（フォーム下部） */
.member-benefits-bottom {
  border-top: 1px solid #e0e0e0;
  margin-top: 40px;
  padding-top: 30px;
}

.member-benefits-bottom h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  position: relative;
  padding-left: 24px;
}

.member-benefits-bottom h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 16px;
  background: #E60012;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-benefits-bottom .benefit-list {
  display: block;
}

.member-benefits-bottom .benefit-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.member-benefits-bottom .benefit-list .check {
  color: #E60012;
  margin-right: 10px;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

/* 右側：フォーム */
.form-container {
  padding: 40px;
}

/* フォームヘッダー */
.form-header {
  margin-bottom: 30px;
}

.step-indicator {
  font-size: 14px;
  color: #666;
  display: block;
  margin-bottom: 10px;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #E60012;
  transition: width 0.3s ease;
}

/* フォームステップ */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.step-description {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* フォーム要素 */
.form-group {
  margin-bottom: 25px;
}

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

.form-group label.required::before {
  content: "必須";
  background: #E60012;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  margin-right: 8px;
  border-radius: 3px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #E60012;
}

.form-group input.error {
  border-color: #dc3545;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* チェックボックス */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.checkbox-note {
  color: #666;
  font-size: 14px;
}

/* ボタン */
.btn-primary {
  background: #E60012;
  color: white;
  border: none;
  padding: 15px 60px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
  margin-right: 10px;
}

.btn-primary:hover {
  background: #cc0010;
}

.btn-secondary {
  background: white;
  color: #333;
  border: 1px solid #ddd;
  padding: 15px 40px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

/* その他 */
.text-muted {
  color: #666;
  font-size: 14px;
  margin: 20px 0;
  line-height: 1.6;
}

.privacy-link {
  margin-top: 10px;
}

.privacy-link a {
  color: #E60012;
  text-decoration: none;
  font-size: 14px;
}

.privacy-link a:hover {
  text-decoration: underline;
}

.login-option {
  margin-bottom: 20px;
}

.login-option a {
  color: #E60012;
  text-decoration: none;
  font-size: 14px;
}

.login-option a:hover {
  text-decoration: underline;
}

/* 会社名サジェスト */
.suggestions {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  width: 100%;
  margin-top: 5px;
}

/* 成功メッセージ */
.success-message {
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 30px;
}

.success-message h2 {
  margin-bottom: 20px;
  color: #333;
}

.success-message p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.download-link {
  font-size: 14px;
}

.download-link a {
  color: #E60012;
  text-decoration: none;
}

.download-link a.btn-primary {
  color: white !important;  /* ボタンの場合は白文字に */
  text-decoration: none;
  display: inline-block;
  padding: 15px 40px;
  margin: 10px 0;
}

.download-link a.btn-primary:hover {
  color: white !important;
  text-decoration: none;
}

.download-link a:hover {
  text-decoration: underline;
}

/* 離脱防止メッセージ */
.continue-motivation {
  text-align: center;
  margin: 20px 0 15px;
  padding: 12px;
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border-radius: 8px;
  border: 1px solid #FFB74D;
}

.continue-motivation p {
  margin: 0;
  color: #F57C00;
  font-weight: 600;
  font-size: 15px;
}

/* Web会員登録のメリット（上部配置） */
.member-benefits-top {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF 100%);
  border: 1px solid #FFD54F;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(255,193,7,0.15);
}

.member-benefits-top h3 {
  margin: 0 0 15px;
  color: #F57C00;
  font-size: 18px;
  font-weight: 600;
}

.member-benefits-top .benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.member-benefits-top .benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.member-benefits-top .check {
  color: #4CAF50;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
  line-height: 1.2;
}

.member-benefits-top .benefit-list div {
  flex: 1;
}

.member-benefits-top .benefit-list strong {
  display: inline-block;
  margin-right: 8px;
  color: #333;
}

.member-benefits-top .value-note {
  color: #666;
  font-size: 13px;
}

.member-benefits-top .register-time {
  margin: 15px 0 0;
  color: #FF6B00;
  font-weight: bold;
  text-align: center;
  font-size: 15px;
}

/* フッター */
.download-footer {
  background: #333;
  color: white;
  padding: 40px 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-nav {
  margin-bottom: 20px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-company {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.copyright {
  font-size: 12px;
  color: #999;
}

/* CTAボックス with サムネイル */
.cta-box.with-thumbnail {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dc3545;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.cta-box.with-thumbnail h3 {
  color: #dc3545;
  margin-bottom: 20px;
  font-size: 1.4em;
  text-align: center;
}

.cta-content-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.cta-thumbnail {
  flex-shrink: 0;
  width: 200px;
  position: relative;
}

.cta-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
}

.cta-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #dc3545;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* メールアドレスの注意書き */
.email-notice {
  margin-top: 8px;
  color: #dc3545;
  font-size: 0.85em;
  line-height: 1.4;
}

.cta-text {
  flex: 1;
}

.cta-text p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.cta-text ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.cta-text ul li {
  margin-bottom: 8px;
}

.cta-box .cta-button {
  display: inline-block;
  background: #dc3545;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
  margin-top: 10px;
}

.cta-box .cta-button:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .cta-content-wrapper {
    flex-direction: column;
  }
  
  .cta-thumbnail {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .cta-box.with-thumbnail {
    padding: 20px;
  }
}

/* レスポンシブ */
@media (max-width: 768px) {
  /* メインコンテンツ */
  .download-main {
    padding: 20px 10px;
  }

  .page-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .download-content {
    grid-template-columns: 1fr;
  }

  .whitepaper-info {
    padding: 15px 10px;
  }

  .form-container {
    padding: 15px 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-bottom: 10px;
  }

  /* 会員登録価値提案ボックス */
  .member-benefits-top {
    padding: 12px;
    margin-left: 0;
    margin-right: 0;
  }

  .member-benefits-top h3 {
    font-size: 15px;
  }

  .member-benefits-top .benefit-list strong {
    font-size: 13px;
  }

  .member-benefits-top .value-note {
    font-size: 11px;
  }

  .member-benefits-top .register-time {
    font-size: 13px;
  }
}