/* タイスケくん 使い方マニュアル 専用CSS
   ベースは /about/lp.css の変数・トーンをそのまま踏襲する（このファイルは lp.css を
   上書きするための追加分のみ。lp.css 自体は変更しない）。
   ダーク面（.ink-band）はタイトル帯と最後の導線帯の2箇所だけに絞る。 */

/* ==== タイトル帯（ダーク・ページ冒頭） ==== */
.manual-title { padding: 56px 0 48px; }
.manual-title-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-sub);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.manual-title-heading {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 16px;
}
.manual-title-lead {
  font-size: 17px;
  color: var(--ink-sub);
  margin: 0;
  max-width: 620px;
}

/* ==== 目次 ==== */
.manual-toc { padding: 40px 0; border-bottom: 1px solid var(--border); }
.manual-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) {
  .manual-toc-list { grid-template-columns: repeat(2, 1fr); }
}
.manual-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.manual-toc-list a:hover { background: var(--bg-panel-header); color: var(--text); }

/* ==== 章の見出し（アイコン＋タイトル） ==== */
.chapter-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.chapter-icon {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chapter-icon svg { width: 60px; height: 60px; display: block; }
.chapter-heading {
  min-width: 0;
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}
@media (max-width: 480px) {
  .chapter-head { gap: 14px; }
  .chapter-icon { width: 80px; height: 80px; }
  .chapter-icon svg { width: 46px; height: 46px; }
}
.chapter-lead { font-size: 16px; color: var(--text-sub); margin: 0 0 24px; max-width: 640px; }
.chapter-note {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 16px;
  color: var(--text-sub);
  margin: 24px 0 0;
  max-width: 720px;
}

/* ==== 実画面スクショ＋番号バッジ注釈 ====
   座標（top/left）は assets/annotations.json（visual-qa作成）を土台に、
   バッジが対象の文字にかぶらないよう「対象のすぐ外」へ調整した実値。 */
.shot-annotated { margin: 0 0 20px; }
.shot-annotated-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px -12px rgba(20, 32, 42, 0.18);
}
.shot-annotated-frame img { display: block; width: 100%; height: auto; }
/* 帯の高さが低く内部に空きがない画像（一括生成ボタン／戻す・やり直す／
   追加ボタン列／表示切替チップ／印刷ボタン）だけ、バッジを画像の外＝
   上にはみ出させて表示する（overflow:visible で許可）。 */
.shot-annotated-frame--overflow {
  overflow: visible;
}
/* m-list：600px以下は列見出しの上にバッジが逃げる分、frameの上に空きを作る
   （デスクトップは列見出し上の白帯にバッジが収まるため空き不要）。 */
@media (max-width: 600px) {
  .shot-annotated-frame--list {
    margin-top: 20px;
  }
}
.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--btn-blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(20, 32, 42, 0.45);
  z-index: 2;
}
/* 390px などモバイルでは対象がさらに小さくなるため、バッジも縮小する
   （数字が読める最小限＝18px）。 */
@media (max-width: 600px) {
  .marker {
    min-width: 18px;
    height: 18px;
    padding: 0 2px;
    font-size: 10px;
    border-width: 1.5px;
  }
}
/* m-save-toast はモバイル用トリミング画像に差し替えるため、
   バッジもデスクトップ用・モバイル用を出し分ける（.marker-mobile-only は
   通常非表示、600px以下でだけ表示。.marker-desktop-only はその逆）。 */
.marker-mobile-only { display: none; }
@media (max-width: 600px) {
  .marker-desktop-only { display: none; }
  .marker-mobile-only { display: flex; }
}
.shot-caption {
  font-size: 16px;
  color: var(--text-sub);
  margin: 10px 0 0;
}

/* ==== 細長い帯画像（追加ボタン列／表示切替チップ）・大きなスクショ（m-empty-start）の
   モバイル対応 ====
   390pxでは縮めず、横スクロールできる枠の中に原寸に近いサイズで表示する。 */
.shot-scroll-hint { display: none; }
@media (max-width: 600px) {
  .shot-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-top: 22px;
  }
  .shot-scroll .shot-annotated-frame {
    width: 750px !important;
    max-width: none !important;
  }
  .shot-scroll-hint {
    display: block;
    font-size: 13px;
    color: var(--text-faint);
    margin: 6px 0 0;
  }
  /* m-empty-start はトリミング済み画像（2倍撮り）を実寸1:1で見せるため、
     横スクロール枠の共通幅（750px）を専用に上書きする。 */
  .shot-scroll .shot-annotated-frame.shot-annotated-frame--empty-start {
    width: 805px !important;
  }
}

/* 番号つき手順テキスト（画像下）。マーカーと同じ丸数字バッジを使い、対応が分かるようにする */
.steps-list {
  counter-reset: step;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  max-width: 680px;
}
.steps-list li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text-sub);
}
.steps-list li:last-child { margin-bottom: 0; }
.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--btn-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==== 用語の定義リスト（⑤表示切替など） ==== */
.def-list { margin: 20px 0 0; padding: 0; max-width: 680px; }
.def-list > div {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.def-list > div:first-child { border-top: none; padding-top: 0; }
.def-list dt { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.def-list dd { font-size: 16px; color: var(--text-sub); margin: 0; }
