/* ============================================================
   インタラクティブ動画診断ブロック 専用スタイル
   AI Japan Tech LP 追加パーツ / 2026-07-04
   ・全クラスを .aijt-ivd- 接頭辞で名前空間化（既存CSSと非干渉）
   ・既存LPのトークンに合わせる:
     Font  = Zen Maru Gothic(見出し) / Zen Kaku Gothic New(本文) / Baloo 2(ラベル)
     Blue  = #2f6bff → #52b9ff  / 文字 #16284d / サブ #54607e
     Card  = 白・角丸22px・影 rgba(30,80,180,0.06〜0.08)
   ============================================================ */

#aijt-ivd {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  padding: clamp(56px, 8vw, 104px) 22px;
}
.aijt-ivd-wrap { width: min(900px, 100%); margin: 0 auto; }

/* 見出し */
.aijt-ivd-head { text-align: center; }
.aijt-ivd-eyebrow {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 14px; letter-spacing: 0.18em; color: #2f6bff;
}
.aijt-ivd-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900; font-size: clamp(24px, 4.4vw, 42px);
  color: #16284d; margin: 12px 0 0; line-height: 1.35;
}
.aijt-ivd-lead {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(14.5px, 1.9vw, 17px); line-height: 1.9;
  color: #54607e; font-weight: 500; margin: 18px auto 0; max-width: 640px;
}

/* ステージ（カード） */
.aijt-ivd-stage {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(30, 80, 180, 0.10);
  padding: clamp(20px, 3.4vw, 34px);
  margin-top: clamp(28px, 4vw, 44px);
}

/* 進捗インジケーター */
.aijt-ivd-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 22px; flex-wrap: wrap;
}
.aijt-ivd-step {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700;
  font-size: 13px; color: #9aa4c0;
}
.aijt-ivd-step .aijt-ivd-dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef2fb; color: #9aa4c0;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 13px;
  transition: background .25s, color .25s;
}
.aijt-ivd-step.is-active { color: #16284d; }
.aijt-ivd-step.is-active .aijt-ivd-dot { background: linear-gradient(135deg, #2f6bff, #52b9ff); color: #fff; }
.aijt-ivd-step.is-done .aijt-ivd-dot { background: #d6f5e3; color: #22b573; }
.aijt-ivd-step-line { width: 22px; height: 2px; background: #e2e8f5; border-radius: 2px; }

/* 動画（レスポンシブ 16:9） */
.aijt-ivd-video {
  position: relative; width: 100%; padding-top: 56.25%;
  background: #0d1a33; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(13, 26, 51, 0.22);
}
.aijt-ivd-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
/* 動画が未設定でも崩れない代替表示 */
.aijt-ivd-video-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 20px;
  color: #cdd9f2; text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 14px; line-height: 1.7;
}
.aijt-ivd-video-fallback .aijt-ivd-fb-emoji { font-size: 34px; }

/* 動画終了までは選択肢を隠す（Vimeo SDK制御） */
.aijt-ivd-hidden { display: none !important; }

/* 「動画を見終わると選択肢が出ます」ヒント */
.aijt-ivd-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 20px 0 4px; padding: 13px 16px; text-align: center;
  background: #eef4ff; border: 1px dashed #b9d1ff; border-radius: 12px;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700;
  font-size: 14px; color: #2f6bff; line-height: 1.5;
}
.aijt-ivd-hint-ico { font-size: 17px; }
.aijt-ivd-skip-wrap { text-align: center; margin-top: 14px; }
.aijt-ivd-skip {
  background: none; border: none; cursor: pointer; padding: 6px 10px;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 13px;
  color: #9aa4c0; text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.aijt-ivd-skip:hover { color: #2f6bff; }

/* 質問文 */
.aijt-ivd-q {
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900;
  font-size: clamp(18px, 2.6vw, 23px); color: #16284d;
  text-align: center; line-height: 1.6; margin: 26px 0 4px;
}
.aijt-ivd-q-sub {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 500;
  font-size: 14px; color: #7a86a6; text-align: center; margin: 0 0 20px;
}

/* 選択肢ボタン */
.aijt-ivd-options {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px;
}
.aijt-ivd-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer;
  background: #f7faff; border: 1.5px solid #e2ebfb; border-radius: 16px;
  padding: 18px 20px; color: #16284d;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700;
  font-size: clamp(15px, 1.9vw, 16.5px); line-height: 1.55;
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
}
.aijt-ivd-opt:hover, .aijt-ivd-opt:focus-visible {
  border-color: #2f6bff; background: #fff;
  box-shadow: 0 12px 26px rgba(47, 107, 255, 0.16);
  transform: translateY(-2px); outline: none;
}
.aijt-ivd-opt .aijt-ivd-opt-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; background: #eaf1ff;
}
.aijt-ivd-opt .aijt-ivd-opt-arrow {
  flex: 0 0 auto; margin-left: auto; color: #2f6bff; font-size: 18px; font-weight: 800;
}

/* ナビ（戻る / 最初から） */
.aijt-ivd-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 22px;
}
.aijt-ivd-link {
  background: none; border: none; cursor: pointer; padding: 8px 4px;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 14px;
  color: #7a86a6; transition: color .2s;
}
.aijt-ivd-link:hover { color: #2f6bff; }
.aijt-ivd-link[hidden] { display: none; }

/* 診断結果カード */
.aijt-ivd-result-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 13px;
  letter-spacing: 0.12em; color: #22b573;
  background: #e7faf0; border-radius: 30px; padding: 7px 16px;
}
.aijt-ivd-result-type {
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900;
  font-size: clamp(21px, 3.4vw, 30px); color: #16284d;
  line-height: 1.4; margin: 16px 0 0;
}
.aijt-ivd-result-service {
  display: inline-block; margin-top: 14px;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 800; font-size: 15px;
  color: #2f6bff; background: #eef4ff; border: 1px solid #d9e6ff;
  border-radius: 12px; padding: 9px 16px;
}
.aijt-ivd-result-body {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 500;
  font-size: clamp(14.5px, 1.9vw, 16px); line-height: 1.95; color: #54607e;
  margin: 18px 0 0;
}
.aijt-ivd-result-cta-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 26px;
}
.aijt-ivd-cta {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: linear-gradient(120deg, #2f6bff, #52b9ff); color: #fff;
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 800;
  font-size: clamp(15.5px, 2vw, 18px); padding: 17px 32px; border-radius: 44px;
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.30);
  transition: transform .18s, box-shadow .2s;
}
.aijt-ivd-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(47, 107, 255, 0.38); }
.aijt-ivd-cta-note { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 13px; color: #8a96b3; font-weight: 500; }
.aijt-ivd-detail-link {
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 14px;
  color: #2f6bff; text-decoration: none;
}
.aijt-ivd-detail-link:hover { text-decoration: underline; }

/* フェード切替 */
.aijt-ivd-fade { animation: aijtIvdFade .38s ease; }
@keyframes aijtIvdFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 2カラム以上に広がる余地のある画面では選択肢を2列に */
@media (min-width: 620px) {
  .aijt-ivd-options { grid-template-columns: 1fr 1fr; }
  .aijt-ivd-options.aijt-ivd-options-3 { grid-template-columns: 1fr; }
}

/* スマホ最適化 */
@media (max-width: 480px) {
  .aijt-ivd-stage { border-radius: 20px; padding: 18px 15px; }
  .aijt-ivd-opt { padding: 15px 16px; gap: 11px; }
  .aijt-ivd-opt .aijt-ivd-opt-ico { width: 36px; height: 36px; font-size: 19px; }
  .aijt-ivd-progress { gap: 6px; }
  .aijt-ivd-step span.aijt-ivd-step-label { display: none; }
}
