/* ホワイトペーパー詳細ページスタイル */

/* シンプルヘッダー */
.header-simple {
  padding: 1rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.logo-link {
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.logo-link:hover {
  color: #e63946;
}

/* ヒーローセクション */
.wp-hero {
  background: #f8f9fa;
  padding: 3rem 0;
}

.wp-hero-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: center;
}

.wp-hero-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.wp-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.9rem;
  color: #666;
}

.btn-download-large {
  background: #e63946;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-download-large:hover {
  background: #d62828;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.wp-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 概要セクション */
.wp-overview {
  padding: 4rem 0;
}

.overview-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  white-space: pre-line;
}

/* ターゲットセクション */
.wp-target {
  background: #f8f9fa;
  padding: 4rem 0;
}

.target-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.target-list li {
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.target-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e63946;
  font-weight: bold;
  font-size: 1.2rem;
}

/* 目次セクション */
.wp-contents {
  padding: 4rem 0;
}

.contents-list {
  display: grid;
  gap: 2rem;
}

.chapter-item {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
}

.chapter-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #e63946;
}

.chapter-item ul {
  list-style: none;
  padding: 0;
}

.chapter-item li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.chapter-item li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* ベネフィットセクション */
.wp-benefits {
  background: #f8f9fa;
  padding: 4rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: start;
  gap: 1rem;
}

.check-icon {
  color: #e63946;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.benefit-card p {
  margin: 0;
  line-height: 1.6;
}

/* CTAセクション */
.wp-cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #e63946, #d62828);
}

.cta-wrapper {
  text-align: center;
  color: white;
}

.cta-wrapper h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-wrapper p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-wrapper .btn-download-large {
  background: white;
  color: #e63946;
  font-size: 1.2rem;
  padding: 1.2rem 3rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
}

.cta-wrapper .btn-download-large:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-benefits-inline {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.download-benefits-inline span {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* 関連資料セクション */
.wp-related {
  background: #f8f9fa;
  padding: 4rem 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.related-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  display: block;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.related-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.related-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* ダウンロードフォームセクション */
.wp-download-form {
  padding: 4rem 0;
  background: #f8f9fa;
}

.download-form-wrapper {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: start;
}

/* 左側：ホワイトペーパー情報 */
.form-left {
  position: sticky;
  top: 2rem;
}

.wp-preview {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.wp-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.wp-info {
  padding: 1.5rem;
}

.wp-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.wp-meta-inline {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.download-benefits {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.download-benefits h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #e63946;
}

.download-benefits ul {
  list-style: none;
  padding: 0;
}

.download-benefits li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.download-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e63946;
  font-weight: bold;
}

/* 右側：認証フォーム */
.form-right {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* インライン認証フォームスタイル */
.inline-auth-wrapper {
  padding: 2rem;
}

.auth-progress {
  margin-bottom: 2rem;
}

.progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.progress-steps .step {
  color: #999;
  transition: color 0.3s;
}

.progress-steps .step.active {
  color: #e63946;
  font-weight: 500;
}

.auth-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.auth-form .required {
  color: #e63946;
}

.auth-form .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.auth-form .form-control:focus {
  outline: none;
  border-color: #e63946;
}

.error-message {
  color: #e63946;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.checkbox-label {
  display: flex;
  align-items: start;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.checkbox-label span {
  line-height: 1.5;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background: #d62828;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(230, 57, 70, 0.3);
}

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

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

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

.btn-block {
  width: 100%;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.button-group .btn-secondary {
  flex: 1;
}

.button-group .btn-primary {
  flex: 2;
}

/* 確認画面 */
.confirm-list {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.confirm-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.confirm-item:last-child {
  border-bottom: none;
}

.confirm-label {
  font-weight: 500;
  color: #666;
}

.confirm-value {
  color: #333;
}

/* 成功画面 */
.inline-auth-wrapper.success {
  text-align: center;
  padding: 3rem 2rem;
}

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

.success-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.success-note {
  color: #666;
  margin-top: 1rem;
}

.success-note a {
  color: #e63946;
  text-decoration: none;
}

.next-actions {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.next-actions h4 {
  margin-bottom: 1rem;
  color: #333;
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.switch-link {
  color: #e63946;
  text-decoration: none;
}

.switch-link:hover {
  text-decoration: underline;
}

.auth-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 5px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .download-form-wrapper {
    grid-template-columns: 1fr;
  }
  
  .form-left {
    position: static;
    display: none;
  }
}

@media (max-width: 768px) {
  .wp-hero-content {
    grid-template-columns: 1fr;
  }
  
  .wp-hero-image {
    order: -1;
  }
  
  .target-list {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .wp-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .inline-auth-wrapper {
    padding: 1.5rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .button-group .btn-secondary,
  .button-group .btn-primary {
    width: 100%;
    flex: none;
  }
}