/* ============================================================
   infoQ 説明動画プレイヤー：見た目と動き（Figma のラフに合わせた版）
   運営はここを触らず、content.csv だけを直す。
   サイトの CSS とぶつからないよう、すべて .iq-player の中に閉じている。
   大きさは「画面の幅に対する割合（cqw）」で決めているので、PC でもスマホでも崩れない。
   （1cqw ＝ 画面の幅の1%。1920px のラフなら 19.2px）
   ============================================================ */
.iq-player {
  /* 色：強調のピンク・番号や枠の青緑・文字2色・補足の文字・線・面2色 */
  --iq-pink: #E41C66; --iq-teal: #31A3AD; --iq-icon: #31A3AD;
  --iq-ink: #333333; --iq-ink2: #4B4B4B; --iq-sub: #5F6B76;
  --iq-line: #DCE4EA; --iq-gray: #F3F5F7; --iq-tint: #DBECED; --iq-edge: #A9A9A9;
  --iq-soft: cubic-bezier(.4, 0, .2, 1);
  container: iqplayer / inline-size;
  width: min(100%, 960px); margin: 0 auto; color: var(--iq-ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; line-height: 1.45;
}
.iq-player *, .iq-player *::before, .iq-player *::after { box-sizing: border-box; }
/* 埋め込むページの CSS（見出しの線・段落の余白・文字の間隔）が中に効かないようにする */
.iq-player p, .iq-player ul { margin: 0; }
.iq-player ul { padding: 0; }
.iq-player .iq-h { padding: 0; border: 0; }
.iq-player, .iq-player * { letter-spacing: normal; }
/* 丸（アイコン・番号・チェック・？）の地色 */
.iq-grad { background: linear-gradient(135deg, #35B1BC, #4596FB); }

/* ---- 画面（16:9。スマホ幅では縦長の 4:5） ---- */
.iq-stage {
  position: relative; container: iqstage / inline-size; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 12px; background: #fff; border: 1px solid var(--iq-line); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); cursor: pointer;
  --iq-ps: running;
}
.iq-stage.is-paused { --iq-ps: paused; }
@container iqplayer (max-width: 640px) { .iq-stage { aspect-ratio: 4 / 5; } }
/* 左上のロゴ（いつも出ている。動かさない） */
.iq-corner { position: absolute; z-index: 2; left: 2.92cqw; top: 1.875cqw; width: 14.84cqw; height: auto; pointer-events: none; }

.iq-scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3cqw; padding: 6cqw 4cqw 3cqw; text-align: center;
}
.iq-scene.is-title { gap: 1.6cqw; }
.iq-scene.is-step { flex-direction: row; gap: 5.6cqw; text-align: left; }

/* ---- 文字 ---- */
.iq-title { font-size: max(24px, 5cqw); font-weight: 700; margin-top: 1.6cqw; }
.iq-h { font-size: max(20px, 4.17cqw); font-weight: 700; }
/* はじめに（S01〜S04）：Figma v0.4 で調整した値。字間を 8% あける */
/* 中の要素ごとに指定する（.iq-player * で字間を normal に戻しているので、場面だけに付けても効かない） */
.iq-scene:is([data-id="S01"], [data-id="S03"], [data-id="S04"]) * { letter-spacing: .08em; }   /* S02（章の扉）はほかの章の扉とそろえて字間なし */
.iq-scene[data-id="S04"] .iq-cmp-card, .iq-scene[data-id="S04"] .iq-cmp-card * { letter-spacing: 0; }
/* S04 の見出し：字間は付けず、2px 小さく（余白を作る） */
.iq-scene[data-id="S04"] .iq-h, .iq-scene[data-id="S04"] .iq-h * { letter-spacing: normal; }
.iq-scene[data-id="S04"] .iq-h { font-size: max(19px, 3.96cqw); }
.iq-scene[data-id="S03"] .iq-h { line-height: 1.65; }   /* 2行が近いので行間を広げる */
.iq-scene[data-id="S06"] .iq-cmp-pill { letter-spacing: .08em; }   /* S06 の「これまで／これから」も S04 とそろえる */
/* S04・S06：「これまで／これから」の図を約 0.89 倍に縮め、見出しとの間を少し広げる（スマホ幅は変えない） */
@container iqstage (min-width: 641px) {
  .iq-scene:is([data-id="S04"], [data-id="S06"]) { gap: 4.06cqw; }
  .iq-scene[data-id="S04"] { gap: 5.2cqw; }   /* 「引き継がれます」の下をほんのり空ける */
  .iq-scene[data-id="S04"] .iq-cmp { --u: .89cqw; --col: 42; }
  .iq-scene[data-id="S06"] .iq-cmp { --u: .89cqw; }
}
.iq-scene[data-id="S24"] .iq-h { font-size: max(18px, 3.75cqw); letter-spacing: .08em; }   /* 最後のお礼は4px小さく（960px幅のとき） */
.iq-big { font-size: max(44px, 9.375cqw); font-weight: 700; line-height: 1.2; }
.iq-sub { font-size: max(14px, 2.6cqw); font-weight: 500; color: var(--iq-ink2); }
.iq-desc { font-size: max(14px, 1.875cqw); font-weight: 500; color: var(--iq-ink2); }
/* 行の長さをそろえ、日本語は文節の切れ目で折り返す（対応していないブラウザでは通常の折り返し） */
.iq-title, .iq-h, .iq-sub, .iq-desc, .iq-chip span, .iq-prep p, .iq-chapter-t { text-wrap: balance; word-break: auto-phrase; }
.iq-hl { color: var(--iq-pink); }
.iq-pk { color: var(--iq-pink); font-weight: 700; display: inline-block; }   /* ボタン名などは途中で折り返さない */
.iq-inline { height: 1.4em; vertical-align: middle; margin-right: .25em; }
.iq-logo { width: 46.5cqw; height: auto; }

/* ---- 章の扉：番号と章の名前 ---- */
.iq-chapter { display: flex; align-items: center; justify-content: center; gap: 3cqw; font-weight: 700; line-height: 1.3; }
.iq-chapter-n { font-size: max(48px, 6.46cqw); color: var(--iq-teal); }
.iq-chapter-t { font-size: max(24px, 5.83cqw); }

/* ---- 並べ方・丸・アイコン ---- */
.iq-row { display: flex; align-items: center; justify-content: center; gap: 2.5cqw; }
.iq-row.is-bottom { align-items: flex-end; gap: 6.25cqw; }
.iq-row.is-items { align-items: stretch; gap: 1.25cqw; }   /* カードを「＋」に寄せる */
.iq-icon { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.iq-circle { flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.iq-circle.is-hero { width: 10.16cqw; height: 10.16cqw; }
.iq-circle svg { width: 58%; height: 58%; }

/* ---- 「これまで／これから」の図（--u が大きさの単位） ---- */
.iq-cmp { --u: 1cqw; --col: 42; position: relative; display: flex; justify-content: center; }
.iq-cmp.is-login { --col: 46; }
.iq-cmp-side { width: calc(var(--col) * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(3.2 * var(--u)); }
.iq-cmp.is-login .iq-cmp-side { gap: calc(2.3 * var(--u)); }
.iq-cmp-pill {
  width: calc(22.1 * var(--u)); height: calc(6 * var(--u)); border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--iq-gray); color: var(--iq-ink2); font-size: calc(2.92 * var(--u)); font-weight: 700; line-height: 1;
}
.iq-cmp-side.is-new .iq-cmp-pill { background: var(--iq-tint); }
.iq-cmp-body { position: relative; display: flex; }
.iq-cmp-card {
  width: calc(30.4 * var(--u)); height: calc(12.65 * var(--u)); border-radius: calc(2.08 * var(--u));
  display: flex; align-items: center; justify-content: center; gap: calc(1.2 * var(--u));
  background: #fff; border: max(1px, calc(.21 * var(--u))) solid var(--iq-edge);
  font-size: calc(5 * var(--u)); font-weight: 700; line-height: 1.2; color: var(--iq-ink2);
}
.iq-cmp-card img { width: calc(4.6 * var(--u)); height: auto; }
.iq-cmp-side.is-new .iq-cmp-card { border: max(2px, calc(.26 * var(--u))) solid var(--iq-teal); color: var(--iq-ink); }
/* これまでのログイン：濃いグレーの面＋取り消し線＋×で「もう使えない」を示す */
.iq-cmp-card.is-off {
  width: calc(34 * var(--u)); height: calc(15.1 * var(--u)); flex-direction: column; gap: calc(1.25 * var(--u));
  background: #AEB5BB; border: 0;
}
.iq-input {
  width: calc(27 * var(--u)); height: calc(5 * var(--u)); display: flex; align-items: center; padding-left: calc(1.67 * var(--u));
  border-radius: calc(.83 * var(--u)); background: #E1E4E7; color: #5F666C;
  font-size: max(11px, calc(1.875 * var(--u))); font-weight: 500; text-decoration: line-through;
}
.iq-cmp-x {
  position: absolute; right: calc(-2.4 * var(--u)); top: calc(-2.4 * var(--u)); width: calc(5.4 * var(--u)); height: calc(5.4 * var(--u));
  border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #4B4B4B; border: calc(.4 * var(--u)) solid #fff;
}
.iq-cmp-x svg { width: 62%; height: 62%; stroke-width: 2.6; }
/* これからのログイン：ログインボタンと、その下の小さな文字 */
.iq-cmp-side.is-new .iq-cmp-card.is-btn { width: auto; height: auto; background: none; border: 0; border-radius: 0; }
.iq-btn-main {
  width: calc(35.2 * var(--u)); height: calc(8.75 * var(--u)); border-radius: 999px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: calc(.4 * var(--u)); background: #fff; border: max(2px, calc(.26 * var(--u))) solid var(--iq-teal);
}
.iq-btn-row { display: flex; align-items: center; justify-content: center; gap: calc(1 * var(--u)); }
.iq-cmp-card .iq-btn-main img { width: auto; height: calc(3.4 * var(--u)); }
.iq-btn-main b { font-size: max(13px, calc(2.08 * var(--u))); font-weight: 700; }
.iq-cmp-card small { font-size: max(12px, calc(1.67 * var(--u))); font-weight: 500; color: var(--iq-ink2); }
/* チェックが付くとき、これからの枠がグレー（これまでと同じ）からティールに変わる */
.iq-cmp-body.is-lit .iq-cmp-card, .iq-cmp-body.is-lit .iq-btn-main {
  animation: iq-lit .6s var(--iq-soft) both; animation-delay: var(--dc, 0s); animation-play-state: var(--iq-ps);
}
@keyframes iq-lit { from { border-color: var(--iq-edge); } }
/* チェック：これからの右上の角に重ねる */
.iq-cmp-check {
  position: absolute; right: calc(-3.65 * var(--u)); top: calc(-3.65 * var(--u)); width: calc(7.3 * var(--u)); height: calc(7.3 * var(--u));
  border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 calc(.4 * var(--u)) #fff;
}
.iq-cmp.is-login .iq-cmp-check { top: calc(-2.7 * var(--u)); }
.iq-cmp-check svg { width: 62%; height: 62%; stroke-width: 2.6; }
.iq-cmp-div { position: absolute; left: 50%; top: 0; bottom: 0; width: max(1px, calc(.16 * var(--u))); background: #BBBBBB; }
/* 矢印：左右のカードの間（どちらの枠にもかからない長さ）、カードの高さの真ん中。S04・S06 で同じ長さ */
.iq-cmp-side.is-old { position: relative; z-index: 2; }   /* ×の丸を、矢印の白い下地より前に出す */
.iq-cmp-arrow {
  z-index: 1; position: absolute; left: calc(50% - 4.3 * var(--u)); top: calc(13.4 * var(--u)); width: calc(8.6 * var(--u));
  padding: calc(.85 * var(--u)) 0; background: #fff;
}
.iq-cmp.is-login .iq-cmp-arrow { top: calc(10.55 * var(--u)); left: calc(50% - 4.6 * var(--u)); }   /* 右の枠が少し大きいぶん左へ（左右のすき間をそろえる） */
.iq-cmp-arrow svg { display: block; width: 100%; height: auto; fill: none; stroke: #4BAEB7; stroke-width: 17; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 用意するもの：番号つきのカード ---- */
.iq-prep {
  width: 34.4cqw; min-height: 21.35cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25cqw;
  padding: 2cqw 1.6cqw; background: #fff; border-radius: 2.08cqw;
  box-shadow: 0 .4cqw 1.6cqw rgba(51, 51, 51, .08), 0 0 .3cqw rgba(51, 51, 51, .05);
}
.iq-num {
  flex: none; width: 5.83cqw; height: 5.83cqw; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: max(16px, 2.9cqw); font-weight: 700; line-height: 1;
}
/* カードの間の「＋」：番号の丸と見分けがつくよう、丸なしの文字色（#333）の線だけ */
.iq-plus { flex: none; align-self: center; width: 6.25cqw; height: 6.25cqw; display: flex; align-items: center; justify-content: center; }
.iq-plus svg { width: 100%; height: 100%; stroke-width: 2.2; }
/* アイコンつき：番号は左上に小さく、真ん中に薄い色の丸とアイコン */
.iq-prep.has-ic { position: relative; }
.iq-prep.has-ic .iq-num { position: absolute; left: 1.46cqw; top: 1.46cqw; width: 4.17cqw; height: 4.17cqw; font-size: max(13px, 2.08cqw); }
.iq-prep-ic { flex: none; width: 7.3cqw; height: 7.3cqw; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--iq-tint); }
.iq-prep-ic svg { width: 56%; height: 56%; }
.iq-prep strong { display: block; font-size: max(16px, 2.5cqw); }
.iq-prep p { margin-top: .6cqw; font-size: max(13px, 1.67cqw); font-weight: 500; color: var(--iq-ink2); }

/* ---- ページ内リンク（？つきの丸いボタン） ---- */
.iq-player a.iq-linkbtn, .iq-player a.iq-linkbtn:visited {
  display: inline-flex; align-items: center; gap: 1.2cqw; min-height: max(40px, 4.58cqw); padding: 0 max(18px, 2.6cqw) 0 max(8px, .84cqw);
  border-radius: 999px; background: var(--iq-gray); color: var(--iq-ink); font-size: max(14px, 1.67cqw); font-weight: 500; text-decoration: none;
}
.iq-player a.iq-linkbtn:hover { background: #E6EAEE; }
.iq-player a.iq-linkbtn:focus-visible { outline: 2px solid var(--iq-ink); outline-offset: 2px; }
.iq-q { flex: none; width: max(26px, 2.9cqw); height: max(26px, 2.9cqw); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.iq-q svg { width: 70%; height: 70%; stroke-width: 2.4; }

/* ---- メールの通知・注意書き ---- */
.iq-notif {
  display: flex; align-items: center; gap: 1.67cqw; padding: 1.77cqw 3.1cqw 1.77cqw 2.3cqw; border-radius: 1.67cqw; text-align: left;
  background: #fff; border: max(1px, .1cqw) solid var(--iq-line); box-shadow: 0 .625cqw 2.08cqw rgba(0, 0, 0, .12);
}
.iq-notif-ic { flex: none; width: max(32px, 4.17cqw); height: max(32px, 4.17cqw); border-radius: 22%; display: flex; align-items: center; justify-content: center; background: var(--iq-pink); }
.iq-notif-ic svg { width: 60%; height: 60%; }
.iq-notif strong { font-size: max(15px, 2.08cqw); }
.iq-chip {
  display: inline-flex; align-items: center; gap: .83cqw; padding: max(6px, .83cqw) max(14px, 1.875cqw); border-radius: 999px;
  background: var(--iq-gray); color: var(--iq-ink); font-size: max(13px, 1.67cqw); font-weight: 500;
}
.iq-chip svg { width: max(18px, 2.4cqw); height: max(18px, 2.4cqw); flex: none; }

/* ---- 手順：左にスクショ、右に説明 ---- */
.iq-shotbox { flex: none; width: 29.6cqw; display: flex; justify-content: center; }
.iq-shotbox.is-wide { width: 33.2cqw; }
.iq-shotwrap { position: relative; display: block; }
.iq-shot {
  display: block; width: auto; height: auto; max-width: 29.6cqw; max-height: 41cqw; border-radius: .94cqw;
  border: 1px solid rgba(51, 51, 51, .2); box-shadow: 0 .86cqw 1.15cqw rgba(0, 0, 0, .08);
}
.iq-shotbox.is-wide .iq-shot { max-width: 33.2cqw; }
/* 縦に長いスクショは上の部分だけを見せる */
.iq-shotbox.is-top .iq-shot { height: 41cqw; aspect-ratio: 13 / 18; object-fit: cover; object-position: top; }
/* 入力欄のハイライト：薄いピンクで塗る */
.iq-field {
  position: absolute; z-index: 1; border-radius: .5cqw; background: rgba(228, 28, 102, .14); box-shadow: 0 0 0 max(1px, .16cqw) rgba(228, 28, 102, .45);
  animation: iq-fade .6s var(--iq-soft) both; animation-delay: var(--d, 0s); animation-play-state: var(--iq-ps);
}
.iq-tap { position: absolute; z-index: 2; border: max(2px, .42cqw) solid var(--iq-pink); border-radius: 999px; }
.iq-tap i { position: absolute; right: -.83cqw; bottom: -1.15cqw; width: 2.3cqw; height: 2.3cqw; border-radius: 50%; background: rgba(228, 28, 102, .4); }
.iq-step-col { width: 48.2cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 2.4cqw; }
.iq-step-col .iq-h { font-size: max(19px, 3.54cqw); }
.iq-scene[data-id="S13"] .iq-desc { line-height: 1.78; }   /* S13 の2行の説明だけ、詰まらないように行間を広げる */
.iq-step-col .iq-row { justify-content: flex-start; }
.iq-step-col .iq-circle.is-hero { width: 7.3cqw; height: 7.3cqw; }
/* マイページの場面（縦長スクショ）：チェックと見出しを上のほうに寄せる */
.iq-scene:is([data-id="S16"], [data-id="S21"]) .iq-step-col { margin-bottom: 12cqw; }
.iq-badge {
  padding: max(5px, .8cqw) max(16px, 2.6cqw); border-radius: 999px; background: var(--iq-ink); color: #fff;
  font-size: max(12px, 2.13cqw); font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.iq-list { list-style: none; display: flex; flex-direction: column; gap: .6cqw; font-size: max(15px, 2.08cqw); font-weight: 700; }
.iq-list li { display: flex; align-items: center; gap: 1cqw; }
.iq-list li::before { content: ""; flex: none; width: .5em; height: .5em; border-radius: 50%; background: var(--iq-teal); }

.iq-chara { display: block; }

/* ---- スマホ幅の並べ方 ---- */
@container iqstage (max-width: 640px) {
  .iq-corner { left: 14px; top: 12px; width: 28cqw; }
  .iq-scene { gap: 12px; padding: 44px 4cqw 14px; --iq-chara-scale: 1.5; }
  .iq-scene.is-title { gap: 8px; }
  .iq-logo { width: 62cqw; }
  .iq-chapter { flex-direction: column; gap: 4px; }
  .iq-row { flex-wrap: wrap; gap: 3cqw; }
  .iq-row.is-bottom { gap: 4cqw; }
  .iq-circle.is-hero { width: 20cqw; height: 20cqw; }
  /* 見出しは、決めた改行を使わず画面幅に合わせて折り返す */
  .iq-h br { display: none; }

  /* これまで → これから は縦に並べ、矢印は下向き */
  .iq-cmp { --u: 1.35cqw; flex-direction: column; align-items: center; }
  .iq-cmp.is-login { --u: 1.6cqw; }
  .iq-cmp-side, .iq-cmp.is-login .iq-cmp-side { gap: calc(1.6 * var(--u)); }
  .iq-cmp-side.is-old { order: 1; }
  .iq-cmp-arrow, .iq-cmp.is-login .iq-cmp-arrow {
    order: 2; position: static; width: calc(8 * var(--u)); padding: 0; margin: calc(3.2 * var(--u)) 0; background: none; transform: rotate(90deg);
  }
  .iq-cmp-side.is-new { order: 3; }
  .iq-cmp-div { display: none; }

  .iq-row.is-items { flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 8px; }
  .iq-prep { width: 100%; min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px 14px; gap: 12px; }
  .iq-prep p { margin-top: 2px; }
  .iq-num { width: 34px; height: 34px; }
  .iq-prep.has-ic .iq-num { left: -8px; top: -8px; width: 24px; height: 24px; font-size: 13px; }
  .iq-prep-ic { width: 44px; height: 44px; }
  .iq-plus { width: 36px; height: 36px; }
  .iq-notif { gap: 10px; padding: 10px 14px; }

  .iq-scene.is-step { flex-direction: column; text-align: center; gap: 12px; }
  .iq-shotbox, .iq-shotbox.is-wide { width: auto; }
  .iq-shot { max-width: 62cqw; max-height: 42cqw; }
  .iq-shotbox.is-wide .iq-shot { max-width: 84cqw; }
  .iq-shotbox.is-top .iq-shot { height: 42cqw; }
  .iq-step-col { width: 100%; align-items: center; gap: 8px; }
  .iq-scene:is([data-id="S16"], [data-id="S21"]) .iq-step-col { margin-bottom: 0; }
  .iq-step-col .iq-row { justify-content: center; }
  .iq-step-col .iq-circle.is-hero { width: 14cqw; height: 14cqw; }
  .iq-list { flex-direction: row; gap: 16px; }
  .iq-list li { gap: 6px; }
  .iq-chip { text-align: left; }
}

/* ---- 字幕と操作バー ---- */
/* 字幕は画面には出さない（読み上げソフト向けにだけ残す） */
.iq-caption { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.iq-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.iq-controls button, .iq-controls select, .iq-chapters button { font: inherit; cursor: pointer; }
.iq-controls .iq-play {
  flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--iq-ink); color: #fff;
}
.iq-controls .iq-play svg { width: 22px; height: 22px; display: block; }
/* 前の場面へ・次の場面へ */
.iq-controls .iq-step {
  flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--iq-line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--iq-ink);
}
.iq-controls .iq-step:hover { background: var(--iq-gray); }
.iq-controls .iq-step svg { display: block; }
.iq-controls input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: var(--iq-teal); }
.iq-time { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--iq-ink2); }
.iq-controls .iq-speed {
  flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--iq-line); border-radius: 8px; background: #fff; color: var(--iq-ink);
  font-size: 14px; font-weight: 500;
}
.iq-controls .iq-speed {
  padding: 0 30px 0 12px; appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 12px 8px;
}
.iq-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.iq-chapters button {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--iq-teal); border-radius: 8px; background: #fff; color: var(--iq-ink);
  font-size: 14px; font-weight: 500;
}
.iq-chapters button:hover { background: var(--iq-tint); }
.iq-chapters button[aria-current="true"] { background: var(--iq-teal); color: #fff; }
/* 子の章（再開手続きの手順の中の4つ）：親のすぐ後ろに、小さな #EFEFEF のボタンで1つずつ。今いる章はティールの文字＋下線 */
.iq-chapters button.has-children.is-open { background: var(--iq-tint); }
.iq-chapters button.is-child {
  align-self: center; min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: #EFEFEF; color: var(--iq-ink2); font-size: 13px;
}
.iq-chapters button.is-child:hover { background: #E6E6E6; color: var(--iq-teal); }
.iq-chapters button.is-child[aria-current="true"] {
  background: #EFEFEF; color: var(--iq-teal); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.iq-controls :focus-visible, .iq-chapters :focus-visible { outline: 2px solid var(--iq-teal); outline-offset: 2px; }
@container iqplayer (max-width: 640px) {
  .iq-controls { flex-wrap: wrap; gap: 6px 10px; }
  .iq-controls input[type="range"] { order: -1; flex: 1 0 100%; height: 32px; }
  .iq-time { margin-right: auto; }
  .iq-chapters { gap: 6px; }
  .iq-chapters button { padding: 0 12px; font-size: 13px; }
  .iq-chapters button.is-child { min-height: 30px; padding: 0 10px; font-size: 12px; }
}

/* ---- 動き（content.csv の「動き」で名前を選ぶ。none は動かさない） ---- */
.iq-a { animation-fill-mode: both; animation-delay: var(--d, 0s); animation-play-state: var(--iq-ps); animation-timing-function: var(--iq-soft); }
.iq-a-up { animation-name: iq-up; animation-duration: 1.3s; }
.iq-a-fade { animation-name: iq-fade; animation-duration: 1.2s; }
.iq-a-pop { animation-name: iq-pop; animation-duration: 1s; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
.iq-a-grow { animation-name: iq-grow; animation-duration: .9s; }
.iq-a-wipe { animation-name: iq-wipe; animation-duration: .8s; }   /* 左から右へ現れる（矢印） */
@keyframes iq-up { from { opacity: 0; transform: translateY(1.25cqw); } }
@keyframes iq-fade { from { opacity: 0; } }
@keyframes iq-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes iq-grow { from { opacity: 0; transform: scaleX(.2); } }
@keyframes iq-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* 章の扉（動き＝door）：番号→章の名前→下線の順に出る */
.iq-a-door { position: relative; padding-bottom: 1.6cqw; }
.iq-a-door .iq-chapter-n, .iq-a-door .iq-chapter-t, .iq-a-door::after { animation-fill-mode: both; animation-play-state: var(--iq-ps); animation-timing-function: var(--iq-soft); }
.iq-a-door .iq-chapter-n { animation-name: iq-pop; animation-duration: .7s; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); animation-delay: calc(var(--d, 0s) + .15s); }
.iq-a-door .iq-chapter-t { animation-name: iq-slide; animation-duration: .8s; animation-delay: calc(var(--d, 0s) + .35s); }
.iq-a-door::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(3px, .42cqw); border-radius: 999px; background: var(--iq-teal);
  transform-origin: 0 50%; animation-name: iq-line; animation-duration: .7s; animation-delay: calc(var(--d, 0s) + .8s);
}
@keyframes iq-slide { from { opacity: 0; transform: translateX(-3cqw); } }
@keyframes iq-line { from { transform: scaleX(0); } }
.iq-scene { animation: iq-fade .6s var(--iq-soft) both; animation-delay: var(--d, 0s); animation-play-state: var(--iq-ps); }
.iq-tap {
  animation: iq-pop 1s cubic-bezier(.3, 1.4, .5, 1) both, iq-pulse 1.4s ease-in-out infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 1s); animation-play-state: var(--iq-ps), var(--iq-ps);
}
@keyframes iq-pulse { 50% { transform: scale(1.05); } }
/* お辞儀：足元を支点に縮んで沈み、少し止まってから戻る */
.iq-bow { transform-origin: 50% 100%; animation: iq-bow 1.6s ease-in-out both; animation-delay: var(--d2, 0s); animation-play-state: var(--iq-ps); }
@keyframes iq-bow { 25% { transform: scaleY(.88); } 70% { transform: scaleY(.88); } }

/* お辞儀：立ち絵とお辞儀の絵をフェードで切り替え、しばらくして元に戻る（--bx は足元をそろえるずれ） */
.iq-bowpair { position: relative; display: block; }
.iq-bowpair .iq-chara { animation: iq-bow-stand 4.2s ease-in-out both; animation-delay: var(--d2, 0s); animation-play-state: var(--iq-ps); }
.iq-bowpair .iq-chara.is-bow { position: absolute; left: 50%; bottom: 0; opacity: 0; transform: translateX(var(--bx, -50%)); animation-name: iq-bow-pose; }
@keyframes iq-bow-stand { 0%, 10% { opacity: 1; } 32%, 70% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes iq-bow-pose { 0%, 10% { opacity: 0; } 32%, 70% { opacity: 1; } 92%, 100% { opacity: 0; } }

/* 動きを減らす設定のとき：アニメーションを止めて、完成した状態で表示 */
@media (prefers-reduced-motion: reduce) {
  .iq-player .iq-a, .iq-player .iq-scene, .iq-player .iq-tap, .iq-player .iq-field, .iq-player .iq-bow, .iq-player .iq-bowpair .iq-chara, .iq-player .iq-cmp-body.is-lit .iq-cmp-card, .iq-player .iq-cmp-body.is-lit .iq-btn-main,
  .iq-player .iq-a-door .iq-chapter-n, .iq-player .iq-a-door .iq-chapter-t, .iq-player .iq-a-door::after { animation: none !important; }
}

