/* ============================================================
   security.css — crypto.navilab.jp/security/ 専用スタイル
   style.css を読み込んだ後に追加読み込みする

   デザイン根拠:
   - 原則9:  大見出し letter-spacing（getdesign.md Kraken/Stripe参考）
   - 原則10: CTAボタン radius: 24px（Coinbase/Revolut参考）
   - 原則11: Stripeシャドウ（ライトセクション上のカード）
   - 原則12: ガイドページ ダーク/ライトセクション交互
   ============================================================ */

/* ── セキュリティページ固有の追加変数 ── */
:root {
  --nord-blue:     #4687FF;             /* NordVPN ブランドカラー */
  --nord-hover:    #5a96ff;
  --nord-glow:     rgba(70, 135, 255, 0.28);
  --nord-subtle:   rgba(70, 135, 255, 0.08);
  --secure:        #3fb950;             /* 安全表示（= var(--green)） */
  --secure-subtle: rgba(63, 185, 80, 0.10);
  --radius-cta:    24px;               /* ガイドページ ピル型CTA */
  --shadow-light-card:
    rgba(50, 50, 93, 0.12) 0px 8px 24px -8px,
    rgba(0, 0, 0, 0.10) 0px 4px 12px -4px;
  --font-ibm: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont,
              'Segoe UI', 'Noto Sans JP', sans-serif;

  /* ライトセクション */
  --bg-light:        #f0f1f3;
  --bg-light-card:   #ffffff;
  --text-light:      #0d1117;
  --text-light-muted:#505a63;
  --border-light:    rgba(48, 54, 61, 0.12);
}

/* IBM Plex Sans（セキュリティページはこちらを使用） */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── セクション背景切り替え（原則12） ── */
.sec-dark  { background: var(--bg);    color: var(--text); }
.sec-light { background: var(--bg-light); color: var(--text-light); }
.sec-light .text-muted { color: var(--text-light-muted); }
.sec-light a { color: var(--nord-blue); }
.sec-light a:hover { color: #3a75e0; text-decoration: underline; }
.sec-light .section-lead { color: var(--text-light-muted); }

/* ── 原則9: 見出しのレタースペーシング ── */
.sec-h1 { font-size: 30px; font-weight: 800; line-height: 1.4; letter-spacing: -0.5px; }
.sec-h2 { font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: -0.25px; margin-bottom: 20px; }
.sec-h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.1px; margin-bottom: 8px; }
.sec-lead { font-size: 15px; line-height: 1.85; color: var(--text-muted); }

@media (max-width: 768px) {
  .sec-h1 { font-size: 22px; }
  .sec-h2 { font-size: 19px; }
}

/* ── セクション共通レイアウト ── */
.sec-section { padding: 56px 0; }
.sec-section-sm { padding: 40px 0; }
@media (max-width: 768px) {
  .sec-section { padding: 40px 0; }
  .sec-section-sm { padding: 28px 0; }
}

/* ── Hero（ダーク） ── */
.sec-hero {
  background:
    radial-gradient(ellipse 700px 400px at 50% 60%,
      rgba(70, 135, 255, 0.07) 0%, transparent 70%),
    var(--bg);
  padding: 64px 0 52px;
  text-align: center;
}
.sec-hero-inner { max-width: 700px; margin: 0 auto; padding: 0 16px; }

/* シールドアイコン */
.sec-shield-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  background: var(--nord-subtle);
  border: 1px solid rgba(70, 135, 255, 0.18);
  border-radius: 14px;
}
.sec-shield-icon svg { width: 28px; height: 28px; color: var(--nord-blue); }

.sec-hero .sec-h1 { margin-bottom: 14px; }
.sec-hero .sec-lead { max-width: 580px; margin: 0 auto 28px; }

/* 信頼バッジ（CTAの下） */
.sec-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}
.sec-trust-item { display: flex; align-items: center; gap: 5px; }
.sec-trust-item svg { width: 14px; height: 14px; color: var(--secure); flex-shrink: 0; }

@media (max-width: 768px) {
  .sec-hero { padding: 44px 0 36px; }
  .sec-trust { gap: 12px; flex-direction: column; align-items: center; }
}

/* ── CTAボタン群（原則10: radius 24px） ── */
.sec-cta-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── メインCTA（NordVPN Blue） ── */
.btn-nord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 32px;
  font-family: var(--font-ibm);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--nord-blue);
  border: none;
  border-radius: var(--radius-cta);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  box-shadow: 0 4px 16px var(--nord-glow);
}
.btn-nord:hover {
  background: var(--nord-hover);
  box-shadow: 0 6px 24px rgba(70,135,255,0.38);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-nord-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  font-family: var(--font-ibm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-cta);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-nord-outline:hover {
  border-color: var(--nord-blue);
  color: var(--nord-blue);
  text-decoration: none;
}
@media (max-width: 768px) {
  .sec-cta-group { flex-direction: column; align-items: center; }
  .btn-nord, .btn-nord-outline { width: 100%; max-width: 320px; }
}

/* ── フィーチャーカード（ライト背景上） ── */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.sec-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-light-card);
  transition: transform 0.18s, box-shadow 0.18s;
}
.sec-card:hover {
  transform: translateY(-2px);
  box-shadow:
    rgba(50, 50, 93, 0.18) 0px 12px 32px -8px,
    rgba(0, 0, 0, 0.14) 0px 6px 16px -4px;
}
.sec-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--nord-subtle);
  color: var(--nord-blue);
}
.sec-card-icon svg { width: 20px; height: 20px; }
.sec-card-icon--secure { background: var(--secure-subtle); color: var(--secure); }
.sec-card-icon--warn   { background: rgba(210,153,34,0.10); color: var(--orange); }
.sec-card-icon--danger { background: rgba(248,81,73,0.10);  color: var(--red); }

.sec-card h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.1px; color: var(--text-light); margin-bottom: 6px; }
.sec-card p  { font-size: 13px; line-height: 1.8; color: var(--text-light-muted); }

@media (max-width: 768px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-card { padding: 18px; }
}

/* ── ステップ手順（スクショ付き） ── */
.sec-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.sec-step:last-child { border-bottom: none; }

.sec-step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--nord-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec-step-body { flex: 1; min-width: 0; }
.sec-step-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sec-step-body p  { font-size: 14px; line-height: 1.8; color: var(--text-muted); margin-bottom: 12px; }

/* ライトセクション上のステップ */
.sec-light .sec-step { border-bottom-color: var(--border-light); }
.sec-light .sec-step-body h3 { color: var(--text-light); }
.sec-light .sec-step-body p  { color: var(--text-light-muted); }

@media (max-width: 768px) {
  .sec-step { flex-direction: column; gap: 12px; padding: 20px 0; }
  .sec-step-num { min-width: 36px; min-height: 36px; }
}

/* ── スクリーンショットフレーム ── */

/* ブラウザ風フレーム */
.ss-browser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 14px 0;
  box-shadow: var(--shadow-light-card);
}
.ss-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid var(--border);
}
.ss-dots { display: flex; gap: 5px; }
.ss-dots span { display: block; width: 9px; height: 9px; border-radius: 50%; }
.ss-dots span:nth-child(1) { background: #f85149; }
.ss-dots span:nth-child(2) { background: #d29922; }
.ss-dots span:nth-child(3) { background: #3fb950; }
.ss-url {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ss-browser-body img { display: block; width: 100%; height: auto; }

/* スマートフォン風フレーム */
.ss-phone {
  position: relative;
  width: 240px;
  margin: 14px auto;
  border-radius: 28px;
  border: 3px solid var(--border);
  padding: 42px 10px 34px;
  box-shadow: var(--shadow-light-card);
  background: #1a1a2e;
}
.ss-phone::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px; height: 5px;
  border-radius: 3px;
  background: var(--border);
}
.ss-phone::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  border-radius: 2px;
  background: var(--border);
}
.ss-phone img { display: block; width: 100%; border-radius: 6px; }

/* プレースホルダー（スクショ未準備時） */
.ss-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  background: rgba(70,135,255,0.05);
  border: 2px dashed rgba(70,135,255,0.25);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.ss-placeholder .ss-icon { font-size: 28px; }
.ss-placeholder strong { color: var(--nord-blue); font-size: 12px; }
.ss-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.sec-light .ss-caption { color: var(--text-light-muted); }
.sec-light .ss-browser { background: var(--bg-light-card); border-color: var(--border-light); }
.sec-light .ss-browser-bar { background: rgba(0,0,0,0.04); border-bottom-color: var(--border-light); }
.sec-light .ss-url { background: rgba(0,0,0,0.04); }

/* ── バッジ ── */
.sec-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.sec-badge--secure  { background: var(--secure-subtle);          color: var(--secure); }
.sec-badge--warn    { background: rgba(210,153,34,0.12);          color: var(--orange); }
.sec-badge--danger  { background: rgba(248,81,73,0.12);           color: var(--red); }
.sec-badge--info    { background: var(--nord-subtle);             color: var(--nord-blue); }

/* ── 料金プランカード（横並び） ── */
.sec-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.sec-plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  position: relative;
}
.sec-plan-card.recommended {
  border-color: var(--nord-blue);
  background: rgba(70,135,255,0.04);
}
.sec-plan-card .plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nord-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 10px;
  white-space: nowrap;
}
.sec-plan-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.sec-plan-card .plan-price {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--nord-blue);
  line-height: 1;
  margin-bottom: 4px;
}
.sec-plan-card .plan-period { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.sec-plan-card ul { list-style: none; text-align: left; font-size: 13px; color: var(--text-muted); line-height: 2; }
.sec-plan-card ul li::before { content: "✓ "; color: var(--secure); font-weight: 700; }

@media (max-width: 768px) {
  .sec-plan-grid { grid-template-columns: 1fr; }
}

/* ── FAQ アコーディオン（CSS only） ── */
.sec-faq { display: flex; flex-direction: column; gap: 10px; }
.sec-faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sec-light .sec-faq-item { border-color: var(--border-light); background: var(--bg-light-card); box-shadow: var(--shadow-light-card); }

.sec-faq-toggle { display: none; }
.sec-faq-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  user-select: none;
  color: var(--text);
  transition: background 0.15s;
}
.sec-light .sec-faq-label { color: var(--text-light); }
.sec-faq-label:hover { background: var(--bg-hover); }
.sec-light .sec-faq-label:hover { background: #e8e9ec; }
.sec-faq-arrow { flex-shrink: 0; width: 20px; height: 20px; transition: transform 0.25s; color: var(--text-muted); }
.sec-faq-toggle:checked ~ .sec-faq-label .sec-faq-arrow { transform: rotate(180deg); }
.sec-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.sec-faq-toggle:checked ~ .sec-faq-body { max-height: 400px; }
.sec-faq-body p {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-muted);
}
.sec-light .sec-faq-body p { color: var(--text-light-muted); }

/* ── デメリット（向かない人）テーブル ── */
.sec-cons-list { display: flex; flex-direction: column; gap: 10px; }
.sec-con-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: rgba(248,81,73,0.04);
  border: 1px solid rgba(248,81,73,0.15);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
}
.sec-con-item .con-icon { flex-shrink: 0; font-size: 18px; line-height: 1.4; }
.sec-light .sec-con-item { color: var(--text-light); }

/* ── 最終CTA セクション（ダーク） ── */
.sec-final-cta {
  text-align: center;
  padding: 56px 0;
  background: var(--bg);
}
.sec-final-cta h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.25px; margin-bottom: 12px; }
.sec-final-cta .sec-lead { margin-bottom: 28px; }

/* ── 活用シナリオセクション ── */
.sec-scenario {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-light);
}
.sec-scenario:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.sec-scenario-num {
  display: inline-block;
  background: var(--nord-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.sec-scenario h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
  letter-spacing: -0.1px;
}
.sec-scenario p { font-size: 14px; color: var(--text-light-muted); line-height: 1.8; }
.sec-scenario-ss {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sec-scenario-ss.single { grid-template-columns: 1fr; max-width: 560px; }
.sec-scenario-ss img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  display: block;
}
@media (max-width: 600px) {
  .sec-scenario-ss { grid-template-columns: 1fr !important; }
  .sec-scenario h3 { font-size: 16px; }
}

/* ── フッター補足（免責・広告開示） ── */
.sec-footer-disclaimer {
  max-width: 700px;
  margin: 16px auto 0;
  font-size: 11px;
  line-height: 1.9;
  color: var(--text-muted);
  text-align: center;
}
