/* =====================================================
   lesson.css  ―  レッスンページ固有スタイル
   （style.css を読み込んだあとに追加で読み込む）
   ===================================================== */

/* ===== メインコンテンツ幅 ===== */
.main-content { max-width: 1180px; margin: 0 auto; padding: 0 20px 120px; position: relative; z-index: 1; }

/* =====================================================
   ステップカード
   ===================================================== */
.s-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(232,112,26,.11);
  overflow: hidden;
  animation: stepEnter .3s ease;
}
@keyframes stepEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ステップヘッダー（ダークグラデーション） */
.s-hdr {
  background: linear-gradient(135deg, #1C0A3E 0%, #3D1A7A 28%, #8C3008 62%, #E8701A 100%);
  border-radius: 16px 16px 0 0;
  padding: 20px 32px;
  display: flex; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
}
.s-hdr::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='15,0 45,0 60,35 45,70 15,70 0,35' fill='none' stroke='white' stroke-width='0.5' stroke-opacity='0.10'/%3E%3C/svg%3E");
  background-size: 60px 70px;
}

.s-hex {
  width: 58px; height: 58px; flex-shrink: 0; z-index: 1;
  background: rgba(255,255,255,.18);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: #fff;
  border: 2px solid rgba(255,255,255,.28);
}

.s-info    { flex: 1; z-index: 1; min-width: 0; }
.s-counter { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.65); letter-spacing: .14em; margin-bottom: 4px; }
.s-title   { font-size: 22px; font-weight: 900; color: #fff; line-height: 1.25; }

.s-time {
  z-index: 1;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  color: #fff; padding: 6px 16px; border-radius: 20px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
}
.s-time-flex { background: rgba(39,174,96,.35); border-color: rgba(39,174,96,.6); }

/* ステップ内パディング */
.step-body { padding: 0 32px; }

/* =====================================================
   キャラクター吹き出し
   ===================================================== */
.vn       { display: flex; align-items: center; gap: 0; margin: 12px 0; }
.vn-right { flex-direction: row-reverse; }

/* ポートレート：正方形 */
.vn-port  { width: 82px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.vn-img   {
  width: 82px; height: 82px;
  object-fit: cover; object-position: top center;
  border-radius: 12px; display: block;
  background: linear-gradient(135deg,#fde8d8,#fef4ee);
  border: 2.5px solid rgba(232,112,26,.35);
}
.vn-img-vrm { background: linear-gradient(135deg,#d8eafd,#eef4fe); border-color: rgba(41,128,185,.35); }

/* ネームプレート */
.vn-name {
  width: 82px;
  color: #fff; font-size: 11px; font-weight: 700;
  text-align: center; padding: 4px 6px; border-radius: 0 0 8px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px; border-radius: 8px;
}
.vn-name-orange { background: linear-gradient(135deg,#E8701A,#FFB830); }
.vn-name-blue   { background: linear-gradient(135deg,#1565C0,#42A5F5); }
.vn-name-gold   { background: linear-gradient(135deg,#B8860B,#DAA520); }

/* 吹き出し本体 */
.vn-bbl {
  flex: 1; background: #fff; border: 2.5px solid #E8701A; border-radius: 16px;
  padding: 13px 17px; margin: 0 10px;
  font-size: 16px; color: #2C2C2C; position: relative;
  box-shadow: 0 3px 16px rgba(232,112,26,.11);
  align-self: center;
}
.vn-bbl strong { color: #B54E10; font-weight: 700; }

/* 吹き出し矢印（左キャラ） */
.vn:not(.vn-right) .vn-bbl::before { content:''; position:absolute; left:-12px; top:50%; transform:translateY(-50%); border:7px solid transparent; border-right-color:#E8701A; }
.vn:not(.vn-right) .vn-bbl::after  { content:''; position:absolute; left:-8px;  top:50%; transform:translateY(-50%); border:6px solid transparent; border-right-color:#fff; }

/* 吹き出し矢印（右キャラ） */
.vn-right .vn-bbl::before { content:''; position:absolute; right:-12px; top:50%; transform:translateY(-50%); border:7px solid transparent; border-left-color:#E8701A; }
.vn-right .vn-bbl::after  { content:''; position:absolute; right:-8px;  top:50%; transform:translateY(-50%); border:6px solid transparent; border-left-color:#fff; }

/* 吹き出し：育人（青） */
.vn-bbl-blue { border-color: #2980B9; box-shadow: 0 3px 16px rgba(41,128,185,.11); }
.vn-bbl-blue strong { color: #1A5276; }
.vn-right .vn-bbl-blue::before { border-left-color: #2980B9; }
.vn-right .vn-bbl-blue::after  { border-left-color: #fff; }

/* 吹き出し：先生（ゴールド） */
.vn-bbl-gold { border-color: #DAA520; background: #FFFDF0; box-shadow: 0 3px 14px rgba(218,165,32,.10); }
.vn-bbl-gold strong { color: #7B5E00; }
.vn:not(.vn-right) .vn-bbl-gold::before { border-right-color: #DAA520; }
.vn:not(.vn-right) .vn-bbl-gold::after  { border-right-color: #FFFDF0; }

/* =====================================================
   サブセクション（番号・チェックボックス付き）
   ===================================================== */
.ss             { border-bottom: 1px solid rgba(232,112,26,.09); padding: 22px 32px; }
.ss:last-child  { border: none; }
.ss-hdr         {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(232,112,26,.04), rgba(255,184,48,.02));
  border: 1px solid rgba(232,112,26,.12);
  border-radius: 12px;
  padding: 14px 16px;
}

.ss-num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: linear-gradient(135deg,#E8701A,#FFB830);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ss-inner { flex: 1; }
.ss-title { font-size: 18px; font-weight: 800; color: #1E1E1E; margin-bottom: 6px; }
.ss-body  { font-size: 16px; color: #444; }
.ss-body strong { color: #1E1E1E; font-weight: 700; }

.ss-chk { display: none !important; } /* チェックボックス削除済み */

/* =====================================================
   画像フレーム（番号付きオレンジタイトルバー）
   ===================================================== */
.ir   { display: grid; gap: 12px; margin-top: 14px; }
.ir.c1{ grid-template-columns: 1fr; }
.ir.c2{ grid-template-columns: 1fr 1fr; }
.ir.c3{ grid-template-columns: 1fr 1fr 1fr; }

.if-wrap { border-radius: 10px; overflow: hidden; background: #F5F5F5; border: 2px solid rgba(232,112,26,.18); }
.if-bar  { background: linear-gradient(135deg,#E8701A,#FFB830); padding: 6px 14px; display: flex; align-items: center; gap: 8px; }
.if-bar-n {
  width: 22px; height: 22px; background: rgba(255,255,255,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.if-bar-cap { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.3; }

.if-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; color: #bbb; font-size: 13px; }
.if-body.sm { min-height: 100px; }
.if-body    { min-height: 140px; }
.if-body.lg { min-height: 200px; }
.if-body i  { font-size: 26px; opacity: .3; }
.if-wrap > img, .if-wrap > video { width: 100%; height: auto; display: block; }

/* =====================================================
   IT知識カード（ダーク青）
   ===================================================== */
.it-card {
  background: linear-gradient(135deg,#0D2137 0%,#163A5F 60%,#0D2D4A 100%);
  border-radius: 14px; padding: 18px 20px; margin-top: 14px;
  border: 1px solid rgba(66,165,245,.25); position: relative; overflow: hidden;
}
.it-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='46'%3E%3Cpolygon points='10,0 30,0 40,23 30,46 10,46 0,23' fill='none' stroke='%2342A5F5' stroke-width='0.4' stroke-opacity='0.12'/%3E%3C/svg%3E");
  background-size: 40px 46px;
}
.it-title { font-size: 14px; font-weight: 700; color: #42A5F5; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; position: relative; z-index: 1; }
.it-badge { background: #42A5F5; color: #0D2137; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px; flex-shrink: 0; }
.it-body  { font-size: 15px; color: #B3D4F0; position: relative; z-index: 1; }
.it-body strong { color: #E3F2FD; font-weight: 700; }

/* =====================================================
   ミニワーク
   ===================================================== */
.work { background: linear-gradient(135deg,rgba(232,112,26,.04),rgba(255,184,48,.04)); border: 1.5px solid rgba(232,112,26,.2); border-radius: 12px; padding: 16px 18px; margin-top: 14px; }
.work-title { font-size: 14px; font-weight: 700; color: #B54E10; display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.work-title .badge { background: #E8701A; color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 8px; }

.w-input {
  width: 100%; border: 2px solid #ddd; border-radius: 9px;
  padding: 12px 16px; font-size: 16px; font-family: inherit;
  background: #fff; color: #2C2C2C; transition: border-color .2s;
  display: block; margin-bottom: 0;
}
.w-input:focus { outline: none; border-color: #E8701A; box-shadow: 0 0 0 3px rgba(232,112,26,.1); }
textarea.w-input { resize: vertical; min-height: 80px; line-height: 1.65; }
.w-label { font-size: 13px; font-weight: 700; color: #666; margin-bottom: 6px; display: block; }

.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-row  { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.w-row:last-child { margin: 0; }
.w-idx  { font-size: 13px; font-weight: 700; color: #E8701A; min-width: 60px; flex-shrink: 0; }

/* =====================================================
   ヒント
   ===================================================== */
.hint { display: flex; align-items: flex-start; gap: 10px; padding: 12px 18px; border-radius: 0 10px 10px 0; margin: 12px 0; font-size: 15px; font-weight: 600; }
.hint-or    { background: #FEF0E6; border-left: 4px solid #E8701A; color: #B54E10; }
.hint-green { background: rgba(39,174,96,.07); border-left: 4px solid #27AE60; color: #1B6F3C; }
.hint-gray  { background: #F5F5F5; border-left: 4px solid #999; color: #444; }

/* ===== キーボードキー ===== */
.kbd { display: inline-block; background: #f0f0f0; border: 1px solid #bbb; border-radius: 5px; padding: 2px 8px; font-size: 13px; font-family: monospace; box-shadow: 0 2px 0 #aaa; margin: 0 2px; color: #333; }

/* =====================================================
   2D→3D リビール帯
   ===================================================== */
.reveal-accent {
  background: linear-gradient(135deg,#1C0A3E 0%,#3D1A7A 40%,#8C3008 75%,#E8701A 100%);
  border-radius: 14px; padding: 20px 24px; margin: 16px 0;
  display: flex; align-items: center; gap: 20px;
  position: relative; overflow: hidden;
}
.reveal-accent::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='58'%3E%3Cpolygon points='13,0 37,0 50,29 37,58 13,58 0,29' fill='none' stroke='white' stroke-width='0.5' stroke-opacity='0.10'/%3E%3C/svg%3E");
  background-size: 50px 58px;
}
.ra-pair  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; z-index: 1; }
.ra-chara { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ra-img   { width: 74px; height: 94px; object-fit: cover; object-position: top; border-radius: 8px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); }
.ra-img.glow { border-color: #FFB830; box-shadow: 0 0 14px rgba(255,184,48,.45); }
.ra-tag     { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 8px; }
.ra-tag-dim { background: rgba(255,255,255,.12); color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); }
.ra-tag-glow{ background: rgba(255,184,48,.25); color: #FFB830; border: 1px solid rgba(255,184,48,.5); }
.ra-arrow   { font-size: 22px; color: #FFB830; z-index: 1; animation: arrowPulse 1.2s ease-in-out infinite; }
@keyframes arrowPulse { 0%,100%{opacity:.5;transform:translateX(0)} 50%{opacity:1;transform:translateX(4px)} }

.ra-text  { flex: 1; z-index: 1; }
.ra-badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); display: inline-block; margin-bottom: 10px; }
.ra-title { font-size: 18px; font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 8px; }
.ra-body  { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.8; }
.ra-body strong { color: #FFB830; font-weight: 700; }

/* =====================================================
   2D/3D 比較ビュー
   ===================================================== */
.compare-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 16px; }
.compare-side { background: #F8F5F2; border-radius: 14px; overflow: hidden; border: 2px solid rgba(232,112,26,.2); }
.compare-header { padding: 10px 16px; font-size: 14px; font-weight: 800; text-align: center; }
.compare-header-2d  { background: #FFF3E0; color: #B54E10; border-bottom: 2px solid rgba(232,112,26,.2); }
.compare-header-3d  { background: linear-gradient(135deg,#1C0A3E,#3D1A7A); color: #fff; border-bottom: 2px solid rgba(255,184,48,.4); }
.compare-body { padding: 12px; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.compare-body img, .compare-body video { width: 100%; height: auto; max-height: 260px; object-fit: cover; object-position: top; border-radius: 8px; display: block; }
.compare-note    { font-size: 13px; font-weight: 700; text-align: center; padding: 0 8px; }
.compare-note-2d { color: #888; }
.compare-note-3d { color: #E8701A; }
.compare-arrow-wrap  { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.compare-arrow-icon  { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#E8701A,#FFB830); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; animation: arrowPulse 1.2s ease-in-out infinite; }
.compare-arrow-label { font-size: 11px; font-weight: 700; color: #E8701A; }

/* =====================================================
   活動カード（動画ボタン付き）
   ===================================================== */
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.act-card { background: #fff; border: 1.5px solid rgba(232,112,26,.18); border-radius: 14px; overflow: hidden; box-shadow: 0 3px 14px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.act-card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(232,112,26,.15); }
.act-header { background: linear-gradient(135deg,rgba(232,112,26,.08),rgba(255,184,48,.06)); padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(232,112,26,.1); }
.act-icon   { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#E8701A,#FFB830); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.act-title  { font-size: 16px; font-weight: 800; color: #1E1E1E; }
.act-body   { padding: 12px 16px 4px; font-size: 14px; color: #555; line-height: 1.7; }
.act-play-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg,#E8701A,#FFB830); color: #fff; border: none; border-radius: 30px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; margin: 10px 16px 14px; width: calc(100% - 32px); font-family: inherit; transition: opacity .2s; }
.act-play-btn:hover      { opacity: .88; }
.act-play-disabled       { background: #ccc !important; cursor: not-allowed; opacity: .7; }

/* =====================================================
   動画モーダル
   ===================================================== */
.vmodal { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; }
.vmodal.open { display: flex; }
.vmodal-box { background: #111; border-radius: 16px; width: min(780px,95vw); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: vmodalIn .25s ease; }
@keyframes vmodalIn { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
.vmodal-hdr { background: linear-gradient(135deg,#1C0A3E,#3D1A7A,#8C3008,#E8701A); padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.vmodal-title { font-size: 16px; font-weight: 800; color: #fff; flex: 1; }
.vmodal-hint  { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }
.vmodal-close { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); border: none; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vmodal-close:hover { background: rgba(255,255,255,.32); }
.vmodal-frame { position: relative; padding-top: 56.25%; background: #000; }
.vmodal-frame iframe { position: absolute; top:0; left:0; width:100%; height:100%; border: none; }
.vmodal-timer { height: 5px; background: rgba(255,255,255,.12); }
.vmodal-timer-fill { height: 100%; background: linear-gradient(90deg,#E8701A,#FFB830); transition: none; }
.vmodal-foot  { padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.vmodal-remain{ font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; }
.vmodal-stop  { font-size: 13px; font-weight: 700; color: #FFB830; background: transparent; border: 1.5px solid #FFB830; padding: 6px 16px; border-radius: 20px; cursor: pointer; }
.vmodal-stop:hover { background: rgba(255,184,48,.15); }

/* =====================================================
   ロードマップ
   ===================================================== */
.roadmap { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; margin-top: 14px; }
.rm      { background: #FEF0E6; border-radius: 9px; padding: 9px 7px; text-align: center; border: 1px solid rgba(232,112,26,.15); }
.rm-now  { background: linear-gradient(135deg,#E8701A,#FFB830); border-color: transparent; }
.rm-n    { font-size: 10px; font-weight: 700; color: #E8701A; margin-bottom: 3px; }
.rm-t    { font-size: 10px; color: #666; line-height: 1.4; }
.rm-now .rm-n { color: rgba(255,255,255,.8); }
.rm-now .rm-t { color: #fff; font-weight: 700; }

/* =====================================================
   フレキシブルバナー
   ===================================================== */
.flex-banner { background: linear-gradient(135deg,#27AE60,#1E8449); border-radius: 14px; padding: 14px 24px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.flex-banner > i { color: #fff; font-size: 20px; flex-shrink: 0; }
.flex-banner-ttl { font-size: 15px; font-weight: 800; color: #fff; }
.flex-banner-sub { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; }
.flex-tag { background: rgba(255,255,255,.22); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.38); flex-shrink: 0; }

/* =====================================================
   ゴールリスト
   ===================================================== */
.goal-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.goal-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg,rgba(232,112,26,.05),rgba(255,184,48,.03));
  border: 1.5px solid rgba(232,112,26,.15);
  border-radius: 12px; font-size: 15px; color: #333;
  transition: all .2s; line-height: 1.5;
}
.goal-list li:hover {
  background: linear-gradient(135deg,rgba(232,112,26,.10),rgba(255,184,48,.06));
  border-color: rgba(232,112,26,.3);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(232,112,26,.12);
}
.goal-list li .gl-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg,#E8701A,#FFB830);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff;
  box-shadow: 0 2px 8px rgba(232,112,26,.25);
  margin-top: 1px;
}

/* =====================================================
   セクションラベル
   ===================================================== */
.sec-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 800; color: var(--or);
  margin: 22px 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(232,112,26,.15);
  line-height: 2.0;
}
.sec-label .sl-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg,#E8701A,#FFB830);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff;
  box-shadow: 0 2px 8px rgba(232,112,26,.3);
}
.sec-label:first-child { margin-top: 6px; }

/* =====================================================
   ナビゲーションボタン
   ===================================================== */
.nav-row { display: flex; gap: 12px; padding: 18px 32px; border-top: 1px solid rgba(232,112,26,.10); background: rgba(254,240,230,.35); }
.nav-btn { flex: 1; padding: 15px; border-radius: 32px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; border: 2px solid #E8701A; transition: all .25s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.nav-prev { background: #fff; color: #E8701A; }
.nav-prev:hover { background: #FEF0E6; }
.nav-next { background: linear-gradient(135deg,#E8701A,#FFB830); color: #fff; border-color: transparent; box-shadow: 0 4px 18px rgba(232,112,26,.38); }
.nav-next:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232,112,26,.48); }
.nav-btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }

/* =====================================================
   クイズ
   ===================================================== */
.quiz-q-card { background: #F9F9F9; border: 1px solid rgba(232,112,26,.14); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.quiz-q-num  { font-size: 12px; font-weight: 700; color: #E8701A; margin-bottom: 8px; }
.quiz-q-text { font-size: 17px; font-weight: 700; color: #1E1E1E; line-height: 1.6; margin-bottom: 14px; }
.quiz-opts   { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt    { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 2px solid #ddd; border-radius: 10px; font-size: 15px; color: #555; cursor: pointer; background: #fff; transition: all .2s; line-height: 1.5; }
.quiz-opt:hover:not(.disabled) { border-color: #E8701A; color: #B54E10; background: #FEF0E6; }
.quiz-opt.disabled  { pointer-events: none; }
.quiz-opt.correct   { border-color: #27AE60; background: rgba(39,174,96,.09); color: #1B6F3C; }
.quiz-opt.incorrect { border-color: #E74C3C; background: rgba(231,76,60,.09); color: #7B2020; }
.opt-letter { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#E8701A,#FFB830); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quiz-opt.correct   .opt-letter { background: #27AE60; }
.quiz-opt.incorrect .opt-letter { background: #E74C3C; }
.quiz-fb { margin-top: 12px; padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 700; display: none; }
.quiz-fb.show { display: block; }
.quiz-fb.correct   { background: rgba(39,174,96,.11); color: #27AE60; border: 2px solid #27AE60; }
.quiz-fb.incorrect { background: rgba(231,76,60,.11); color: #E74C3C; border: 2px solid #E74C3C; }
.quiz-score { text-align: center; padding: 18px; font-size: 24px; font-weight: 900; display: none; background: linear-gradient(135deg,#E8701A,#FFB830); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.quiz-score.show { display: block; }

/* =====================================================
   次回カード
   ===================================================== */
.next-card { background: #fff; border: 2.5px solid #E8701A; border-radius: 16px; padding: 22px 28px; display: flex; align-items: center; gap: 20px; box-shadow: 0 4px 22px rgba(232,112,26,.11); margin-top: 18px; }
.next-hex  { width: 52px; height: 52px; background: linear-gradient(135deg,#E8701A,#FFB830); clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; font-weight: 900; color: #fff; }
.next-btn  { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg,#E8701A,#FFB830); color: #fff; padding: 11px 24px; border-radius: 26px; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 3px 14px rgba(232,112,26,.3); transition: all .25s; }
.next-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(232,112,26,.4); }

/* =====================================================
   ボーナスゾーン
   ===================================================== */
.bonus-zone { background: linear-gradient(135deg,rgba(255,184,48,.08),rgba(232,112,26,.06)); border: 1.5px dashed rgba(232,112,26,.28); border-radius: 12px; padding: 18px 20px; }
.bonus-title { font-size: 15px; font-weight: 800; color: #B54E10; margin-bottom: 14px; }

/* =====================================================
   レスポンシブ
   ===================================================== */
@media (max-width: 768px) {
  .roadmap, .act-grid, .quiz-opts, .w-grid { grid-template-columns: 1fr 1fr; }
  .ir.c3  { grid-template-columns: 1fr 1fr; }
  .ir.c2  { grid-template-columns: 1fr; }
  .compare-wrap { grid-template-columns: 1fr; }
  .ra-pair { display: none; }
  .vn-port { width: 66px; }
  .vn-img  { width: 66px; height: 66px; }
  .vn-name { width: 66px; }
  .ss, .step-body, .nav-row { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 520px) {
  .roadmap { grid-template-columns: repeat(3,1fr); }
  .quiz-opts { grid-template-columns: 1fr; }
  .w-grid    { grid-template-columns: 1fr; }
}

/* =====================================================
   ゲーミフィケーション追加CSS
   ===================================================== */

/* ── スキルリボン（IT知識カードに付与） ── */
.skill-ribbon-wrap { position: relative; }
.skill-ribbon {
  position: absolute; top: -10px; right: -10px;
  background: linear-gradient(135deg,#1565C0,#42A5F5);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px 4px 8px;
  border-radius: 0 10px 10px 0;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 10px rgba(41,128,185,.4);
  white-space: nowrap;
  animation: ribbonPulse 2s ease-in-out infinite;
}
@keyframes ribbonPulse {
  0%,100%{ box-shadow:0 2px 10px rgba(41,128,185,.4); }
  50%    { box-shadow:0 2px 18px rgba(41,128,185,.7); }
}
.skill-ribbon::before {
  content:''; width:0; height:0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #1565C0;
  position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
}

/* ── IT知識カードにクリックトリガー ── */
.it-card-clickable { cursor: pointer; transition: transform .2s; }
.it-card-clickable:hover { transform: translateY(-2px); }
.it-card-read { opacity: .75; }
.it-card-read .it-badge { background: #27AE60; }

/* ── ヒーロー型リビールセクション ── */
.reveal-hero {
  background: linear-gradient(160deg, #0D0020 0%, #1C0A3E 30%, #2D0A5E 55%, #5C1A00 80%, #8C3008 100%);
  border-radius: 16px;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
}

.reveal-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92'%3E%3Cpolygon points='20,0 60,0 80,46 60,92 20,92 0,46' fill='none' stroke='white' stroke-width='0.6' stroke-opacity='0.06'/%3E%3C/svg%3E");
  background-size: 80px 92px;
}

/* ライトエフェクト */
.reveal-hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,112,26,.15) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

.reveal-hero-top {
  text-align: center;
  padding: 28px 24px 16px;
  position: relative; z-index: 1;
}

.reveal-hero-eyebrow {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 8px;
}

.reveal-hero-catch {
  font-size: 20px; font-weight: 900; color: #fff;
  line-height: 1.35; margin-bottom: 6px;
}

.reveal-hero-catch em {
  font-style: normal;
  background: linear-gradient(90deg,#FFB830,#FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal-hero-sub {
  font-size: 13px; color: rgba(255,255,255,.65);
}

/* キャラ比較グリッド */
.reveal-hero-grid {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 0;
  padding: 0 20px 20px;
  position: relative; z-index: 1;
  align-items: end;
}

.reveal-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.reveal-col-tag {
  font-size: 12px; font-weight: 700; padding: 4px 14px;
  border-radius: 20px;
}
.reveal-col-tag.twod {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.2);
}
.reveal-col-tag.threed {
  background: rgba(255,184,48,.2);
  color: #FFB830;
  border: 1px solid rgba(255,184,48,.45);
}

.reveal-col img {
  width: 100%;
  max-width: 260px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.5));
}

.reveal-col-3d {
  position: relative;
}
.reveal-col-3d .reveal-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(255,184,48,.18) 0%, transparent 70%);
  pointer-events: none;
}

/* 中央の矢印エリア */
.reveal-arrow-col {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; padding-bottom: 40px;
}

.reveal-arrow-big {
  width: 48px; height: 48px;
  background: linear-gradient(135deg,#E8701A,#FFB830);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  box-shadow: 0 0 20px rgba(232,112,26,.5);
  animation: arrowPulse2 1.4s ease-in-out infinite;
}

@keyframes arrowPulse2 {
  0%,100%{ transform:scale(1);   box-shadow:0 0 20px rgba(232,112,26,.5); }
  50%    { transform:scale(1.12);box-shadow:0 0 32px rgba(232,112,26,.8); }
}

.reveal-arrow-label {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.6); text-align: center;
}

/* 実は！バナー */
.reveal-actually {
  background: linear-gradient(135deg,rgba(255,184,48,.15), rgba(232,112,26,.15));
  border: 1.5px solid rgba(255,184,48,.4);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 20px 24px;
  text-align: center;
  position: relative; z-index: 1;
}

.reveal-actually-title {
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.7); margin-bottom: 8px;
}

.reveal-actually-chara {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.reveal-actually-pair {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}

.reveal-actually-pair img {
  width: 60px; height: 60px;
  object-fit: cover; object-position: top;
  border-radius: 10px;
  border: 2px solid rgba(255,184,48,.5);
}

.reveal-actually-pair span {
  font-size: 11px; font-weight: 700; color: #FFB830;
}

.reveal-actually-arrow {
  font-size: 22px; color: #FFB830;
}

.reveal-actually-pair img.vrm-pair {
  border-color: rgba(255,184,48,.8);
  box-shadow: 0 0 12px rgba(255,184,48,.4);
}

/* ── セクション見出しのメリハリ ── */
.ss-title {
  font-size: 18px; font-weight: 800; color: #1E1E1E; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}

/* ── サブセクション番号をより目立つ ── */
.ss-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: linear-gradient(135deg,#E8701A,#FFB830);
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(232,112,26,.3);
}

/* ── ステップカード全体のメリハリ ── */
.ss {
  border-bottom: 1px solid rgba(232,112,26,.09);
  padding: 22px 32px;
  position: relative;
  transition: background .15s;
}
.ss:hover { background: rgba(232,112,26,.015); }

/* ── ITカードのメリハリ ── */
.it-card {
  background: linear-gradient(135deg,#0D2137 0%,#163A5F 60%,#0D2D4A 100%);
  border-radius: 14px; padding: 18px 20px; margin-top: 14px;
  border: 1px solid rgba(66,165,245,.25); position: relative; overflow: hidden;
  transition: border-color .2s;
}
.it-card:hover { border-color: rgba(66,165,245,.5); }

/* ── ワークボックスのメリハリ ── */
.work {
  background: linear-gradient(135deg,rgba(232,112,26,.05),rgba(255,184,48,.05));
  border: 2px solid rgba(232,112,26,.2); border-radius: 12px;
  padding: 16px 18px; margin-top: 14px;
  transition: border-color .2s;
}
.work:focus-within { border-color: rgba(232,112,26,.4); }

/* レスポンシブ */
@media (max-width: 640px) {
  .reveal-hero-grid { grid-template-columns: 1fr 50px 1fr; padding: 0 10px 16px; }
  .reveal-hero-catch { font-size: 16px; }
  .reveal-arrow-big  { width: 36px; height: 36px; font-size: 15px; }
}

/* =====================================================
   活動カード サムネイル拡張
   ===================================================== */
.act-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #111;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
}

.act-thumb-img,
.act-thumb-auto {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}

/* YouTubeサムネ自動生成用（JS側で img に差し替え） */
.act-thumb-auto img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* プレースホルダー */
.act-thumb-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: rgba(255,255,255,.3);
  background: linear-gradient(135deg,#1a1a2e,#16213e);
}
.act-thumb-ph i    { font-size: 32px; }
.act-thumb-ph span { font-size: 11px; font-weight: 600; }

/* 再生ボタンオーバーレイ */
.act-thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25);
  transition: background .2s;
}
.act-thumb-wrap:hover .act-thumb-play { background: rgba(0,0,0,.45); }

.act-thumb-play-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(232,112,26,.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: transform .2s, background .2s;
  padding-left: 4px; /* 視覚的な中央補正 */
}
.act-thumb-wrap:hover .act-thumb-play-btn {
  transform: scale(1.12);
  background: var(--or);
}

/* 準備中バッジ */
.act-thumb-soon {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.65);
  color: rgba(255,255,255,.7);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
}

/* カード全体を少し縦伸ばし */
.act-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; }
.act-body { flex: 1; padding: 12px 16px; font-size: 14px; color: #555; line-height: 1.75; }
.act-card-header { padding: 12px 16px 0; display: flex; align-items: center; gap: 10px; }
.act-icon  { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#E8701A,#FFB830); display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; flex-shrink: 0; }
.act-title { font-size: 15px; font-weight: 800; color: #1E1E1E; }
.act-play-btn { margin: 10px 16px 14px; width: calc(100% - 32px); }

/* =====================================================
   ⑥ ロードマップ サムネイル付き拡張
   ===================================================== */
.roadmap {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 8px; margin-top: 14px;
}

.rm {
  background: #FEF0E6;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(232,112,26,.15);
  transition: transform .2s, box-shadow .2s;
  cursor: default;
}
.rm:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(232,112,26,.15); }
.rm-now   { background: linear-gradient(135deg,#E8701A,#FFB830); border-color: transparent; }

.rm-thumb {
  width: 100%; padding-top: 60%;
  position: relative; overflow: hidden;
  background: rgba(232,112,26,.08);
}
.rm-now .rm-thumb { background: rgba(255,255,255,.15); }

.rm-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.rm-thumb-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(232,112,26,.3); font-size: 14px;
}
.rm-now .rm-thumb-ph { color: rgba(255,255,255,.3); }

.rm-n {
  font-size: 9px; font-weight: 700;
  color: #E8701A; padding: 4px 6px 1px;
  text-align: center;
}
.rm-now .rm-n { color: rgba(255,255,255,.85); }

.rm-t {
  font-size: 9px; color: #666; line-height: 1.4;
  padding: 0 6px 6px; text-align: center;
}
.rm-now .rm-t { color: #fff; font-weight: 700; }

@media (max-width: 768px) {
  .roadmap { grid-template-columns: repeat(4,1fr); }
  .goal-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .roadmap { grid-template-columns: repeat(3,1fr); }
}

/* =====================================================
   タイマー（Canva講座参考）
   ===================================================== */
.step-timer-bar {
  position: sticky;
  bottom: 62px; /* 星プログレスの上 */
  left: 0; right: 0;
  z-index: 97;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(232,112,26,.12);
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

.step-timer-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--or);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.step-timer-track {
  flex: 1;
  background: rgba(232,112,26,.12);
  border-radius: 6px;
  height: 6px;
  overflow: hidden;
}

.step-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #E8701A, #FFB830);
  border-radius: 6px;
  transition: width .5s linear;
}

.step-timer-fill.warn  { background: linear-gradient(90deg,#E74C3C,#FF6B6B); }

.step-timer-remain {
  font-size: 13px;
  font-weight: 800;
  color: var(--or);
  min-width: 48px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.step-timer-remain.warn { color: #E74C3C; animation: timerBlink .6s ease-in-out infinite; }

@keyframes timerBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}

/* =====================================================
   インストラクターバー（下部固定・Canva講座方式）
   ===================================================== */
.inst-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 98;
  background: rgba(28,10,62,0.97);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(232,112,26,0.3);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

/* 星スロット */
.inst-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.inst-star-slot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,184,48,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .3s;
  color: rgba(255,184,48,0.2);
  font-size: 14px;
}
.inst-star-slot.lit {
  border-color: #FFB830;
  color: #FFB830;
  background: rgba(255,184,48,0.15);
  box-shadow: 0 0 8px rgba(255,184,48,0.4);
  animation: starLit .4s cubic-bezier(.34,1.56,.64,1);
}
.inst-star-slot.current {
  border-color: rgba(232,112,26,0.6);
  color: rgba(232,112,26,0.5);
  animation: pulseBorder 1s ease-in-out infinite alternate;
}
@keyframes starLit {
  from { transform: scale(0.6) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

/* 中央：進捗 + ステップ名 */
.inst-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inst-progress {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.inst-done { color: #FFB830; font-weight: 800; font-size: 13px; }
.inst-clr  { color: rgba(255,255,255,0.4); }

.inst-sec-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.inst-sec-badge {
  background: linear-gradient(135deg,#E8701A,#FFB830);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: .06em;
}
.inst-sec-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右：時間 */
.inst-times {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.inst-time-block {
  text-align: center;
}
.inst-time-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}
.inst-time-val {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.inst-time-val.warn   { color: #FFB830; }
.inst-time-val.danger { color: #E74C3C; animation: timerBlink .6s ease-in-out infinite; }
.inst-time-divider {
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.15);
}

/* タイマーバーはinst-barの上に */
.step-timer-bar {
  bottom: 56px; /* inst-barの高さ分上げる */
}

/* メインコンテンツの下余白をinst-barに合わせる */
.main-content { padding-bottom: 140px; }

/* レスポンシブ */
@media (max-width: 600px) {
  .inst-times { display: none; }
  .inst-star-slot { width: 26px; height: 26px; font-size: 12px; }
}
