/* セキュリティ研修専用スタイル */

/* 学習コンテンツ全体 */
.security-content {
  line-height: 1.8;
  color: #1f2937;
}

.security-content h2.section-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #3b82f6;
}

.security-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

/* コンテンツボックス */
.content-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* アラートボックス */
.alert-box {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.alert-box strong {
  color: #991b1b;
  display: block;
  margin-bottom: 0.5rem;
}

.alert-box ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #7f1d1d;
}

/* チェックリスト */
.check-list {
  margin: 1.5rem 0;
}

.check-list h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.check-list ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #4b5563;
}

.check-list ul li {
  margin-bottom: 0.5rem;
}

/* 例示ボックス */
.example-box {
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.example-box.bad {
  background: #fef2f2;
  border: 2px solid #fca5a5;
}

.example-box.good {
  background: #f0fdf4;
  border: 2px solid #86efac;
}

.example-box strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.example-box code {
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

/* Tipボックス */
.tip-box {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.tip-box h4 {
  color: #1e40af;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tip-box p, .tip-box ol {
  color: #1e3a8a;
}

.tip-box ol {
  margin-left: 1.5rem;
}

/* やってはいけないリスト */
.dont-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dont-item {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 1rem;
  border-radius: 0.5rem;
}

.dont-item strong {
  color: #991b1b;
  display: block;
  margin-bottom: 0.5rem;
}

.dont-item p {
  color: #7f1d1d;
  font-size: 0.875rem;
}

/* ルールセクション */
.rule-section {
  margin: 1.5rem 0;
}

.rule-section h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.rule-section ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #4b5563;
}

.rule-section ul li {
  margin-bottom: 0.5rem;
}

/* フローチャート */
.flow-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.flow-step {
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: start;
  gap: 1rem;
  transition: all 0.2s;
}

.flow-step:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.flow-step.urgent {
  background: #fee2e2;
  border-color: #ef4444;
}

.step-number {
  background: #3b82f6;
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.flow-step.urgent .step-number {
  background: #ef4444;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.step-content p {
  color: #6b7280;
  font-size: 0.875rem;
}

.flow-arrow {
  color: #3b82f6;
  font-size: 2rem;
  font-weight: bold;
}

/* 重要ポイント */
.key-points {
  background: linear-gradient(to right, #fef3c7, #fde68a);
  border: 2px solid #fbbf24;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.key-points h3 {
  color: #92400e;
  font-weight: 700;
  margin-bottom: 1rem;
}

.key-points ul {
  list-style: none;
  margin-left: 0;
}

.key-points ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #78350f;
  font-weight: 500;
}

.key-points ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-weight: bold;
  font-size: 1.25rem;
}

/* 情報区分テーブル */
.classification-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.classification-table thead {
  background: #f3f4f6;
}

.classification-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #d1d5db;
}

.classification-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.classification-table tr:last-child td {
  border-bottom: none;
}

.level-public {
  background: #f0fdf4;
}

.level-internal {
  background: #dbeafe;
}

.level-confidential {
  background: #fef3c7;
}

.level-secret {
  background: #fee2e2;
}

/* パスワードルール */
.password-rules {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.password-rules h4 {
  color: #166534;
  margin-bottom: 0.5rem;
}

.password-rules ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #14532d;
}

/* MFA種類 */
.mfa-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.mfa-item {
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.mfa-item strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ロック方法 */
.lock-methods {
  margin: 1rem 0;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.method-item {
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 1rem;
}

.method-item strong {
  display: block;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.method-item ul {
  list-style: none;
  margin-left: 0;
}

.method-item code {
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

/* 安全な方法 */
.safe-method {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.safe-method h4 {
  color: #166534;
  margin-bottom: 0.5rem;
}

.safe-method ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #14532d;
}

/* Why box */
.why-box {
  background: #fffbeb;
  border: 2px solid #fbbf24;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.why-box h4 {
  color: #92400e;
  margin-bottom: 0.5rem;
}

.why-box ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #78350f;
}

/* インシデント種類 */
.incident-types ul {
  list-style: none;
  margin-left: 0;
}

.incident-types ul li {
  background: #f3f4f6;
  padding: 0.75rem;
  border-left: 4px solid #3b82f6;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
}

.incident-types ul li strong {
  color: #1f2937;
}

/* 報告ケース */
.report-cases {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-category {
  border-radius: 0.5rem;
  padding: 1rem;
}

.case-category:nth-child(1) {
  background: #fee2e2;
  border: 2px solid #ef4444;
}

.case-category:nth-child(2) {
  background: #ffedd5;
  border: 2px solid #f97316;
}

.case-category:nth-child(3) {
  background: #dbeafe;
  border: 2px solid #3b82f6;
}

.case-category h4 {
  margin-bottom: 0.75rem;
}

.case-category ul {
  list-style: disc;
  margin-left: 1.5rem;
}

/* 連絡先情報 */
.contact-info {
  margin: 1rem 0;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-item {
  background: #f3f4f6;
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  border-radius: 0.5rem;
}

.contact-item strong {
  display: block;
  color: #1f2937;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #4b5563;
  font-size: 0.875rem;
}

/* 報告方法 */
.report-method {
  margin: 1rem 0;
}

.report-method h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.report-method ol {
  margin-left: 1.5rem;
  color: #4b5563;
}

.report-method ol li {
  margin-bottom: 0.5rem;
}

/* メール例 */
.example-box pre {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
}

/* 初動対応 */
.initial-response {
  margin: 1rem 0;
}

.initial-response h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.initial-response ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.initial-response ul li {
  margin-bottom: 0.5rem;
}

/* 罰則情報 */
.penalty-info {
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.penalty-info h4 {
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.penalty-info p {
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.penalty-info ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #6b7280;
}

/* リスト社外秘 */
.confidential-list h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.confidential-list ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #4b5563;
}

.confidential-list ul li {
  margin-bottom: 0.5rem;
}

/* メールチェックリスト */
.email-checklist ol {
  margin-left: 1.5rem;
  color: #4b5563;
}

.email-checklist ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.email-checklist input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* ツールリスト */
.tool-list ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #4b5563;
}

.tool-list ul li {
  margin-bottom: 0.5rem;
}

/* ===== モバイル対応（セキュリティ研修コンテンツ） ===== */
@media (max-width: 768px) {
  /* フォントサイズを調整 */
  .security-content {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .security-content h2.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .security-content h3 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .security-content h4 {
    font-size: 1.125rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }

  /* パディングを調整 */
  .content-box,
  .alert-box,
  .tip-box,
  .dont-item,
  .password-rules,
  .safe-method,
  .why-box,
  .case-category,
  .contact-item {
    padding: 0.75rem;
    margin: 0.75rem 0;
  }

  /* フローチャート */
  .flow-step {
    padding: 1rem;
    flex-direction: column;
    align-items: start;
    gap: 0.75rem;
  }

  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .step-content strong {
    font-size: 1rem;
  }

  .flow-arrow {
    font-size: 1.5rem;
    align-self: center;
  }

  /* グリッドレイアウトを1列に */
  .mfa-types,
  .method-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* テーブルのフォントサイズ */
  .classification-table th,
  .classification-table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  /* コードブロック */
  .example-box code,
  .method-item code {
    font-size: 0.8125rem;
    word-break: break-all;
  }

  .example-box pre {
    font-size: 0.8125rem;
    padding: 0.75rem;
    overflow-x: auto;
  }

  /* チェックリスト・リストのマージン調整 */
  .check-list ul,
  .alert-box ul,
  .tip-box ol,
  .rule-section ul,
  .password-rules ul,
  .safe-method ul,
  .why-box ul,
  .incident-types ul,
  .case-category ul,
  .report-method ol,
  .initial-response ul,
  .penalty-info ul,
  .confidential-list ul,
  .email-checklist ol,
  .tool-list ul {
    margin-left: 1rem;
    font-size: 0.9375rem;
  }

  /* キーポイント */
  .key-points {
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .key-points h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .key-points ul li {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
  }

  .key-points ul li::before {
    font-size: 1rem;
  }

  /* 報告ケース */
  .report-cases {
    gap: 1rem;
  }

  /* MFA種類 */
  .mfa-item strong {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  /* さらに小さいデバイス用 */
  .security-content {
    font-size: 0.875rem;
  }

  .security-content h2.section-title {
    font-size: 1.25rem;
  }

  .security-content h3 {
    font-size: 1.125rem;
  }

  .security-content h4 {
    font-size: 1rem;
  }

  .content-box,
  .alert-box,
  .tip-box,
  .dont-item,
  .password-rules,
  .safe-method,
  .why-box,
  .case-category,
  .contact-item {
    padding: 0.625rem;
  }

  .flow-step {
    padding: 0.75rem;
  }

  .key-points {
    padding: 0.75rem;
  }
}
