/* 南勝版ダウンロードフォームスタイル V2（Web会員機能付き） */

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

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

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

.header-content {
  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-form-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 40px 20px;
}

.download-form-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

/* ホワイトペーパー情報 */
.whitepaper-info {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.whitepaper-info h1 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #333;
}

.whitepaper-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.whitepaper-thumb {
  text-align: center;
}

.whitepaper-thumb img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.whitepaper-meta h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.4;
}

.whitepaper-meta .subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.file-info span {
  display: block;
}

/* フォームコンテナ */
.form-container {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* プログレスバー */
.progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-bottom: 40px;
  overflow: hidden;
}

.progress-fill {
  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: 30px;
  color: #333;
}

/* フォームグループ */
.form-group {
  margin-bottom: 25px;
}

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

.form-group label.required::after {
  content: " *";
  color: #E60012;
}

/* 任意フィールド */
.form-group label .optional {
  font-size: 12px;
  color: #999;
  font-weight: normal;
  margin-left: 4px;
}

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

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

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

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

/* 名前入力フィールド */
.name-inputs {
  display: flex;
  gap: 15px;
}

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

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-group label.checkbox-required {
  cursor: default;
}

.checkbox-group .checkbox-text.required::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #e60012;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: super;
  font-size: 8px;
}

.checkbox-group input[type="checkbox"]:checked {
  cursor: not-allowed;
  accent-color: #e60012;
}

.checkbox-note {
  font-size: 14px;
  color: #e60012;
  font-weight: 500;
}

/* ボタン */
.btn-primary,
.btn-secondary {
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 10px;
}

.btn-primary {
  background: #E60012;
  color: white;
}

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

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

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

/* テキスト */
.text-muted {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}

.privacy-link {
  margin-bottom: 30px;
}

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

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

/* Web会員限定特典 */
.member-benefits-bottom {
  margin-top: 40px;
  padding: 30px;
  background: #f8f8f8;
  border-radius: 8px;
}

.member-benefits-bottom h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

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

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #666;
}

.benefit-list .check {
  color: #E60012;
  font-weight: bold;
  font-size: 18px;
}

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

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

.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;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .download-form-content {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 30px 20px;
  }
  
  .name-inputs {
    flex-direction: column;
  }
}