/* ══════════════════════════════════════════════════════════════
   修正指示ツール：画像の準備（4つのタブ）の見た目
   入口ページ（index.html）とメモ画面の「ページ追加」（fix.html）で共通。
   fix.html には style.css が無いので、色は変数を使わず直接書いている。
   ══════════════════════════════════════════════════════════════ */
.fx-card *, .fx-card { box-sizing: border-box; }
.fx-card .btn { display: inline-flex; align-items: center; border-radius: 6px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid #d1d5db; background: #fff; color: #374151; font-family: inherit; }
.fx-card .btn-primary { background: #5fa39a; border-color: #5fa39a; color: #fff; }
.fx-card .btn-primary:hover { background: #4a8b83; }
.fx-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); overflow: hidden; margin-bottom: 20px; }
.fx-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #5fa39a; }
.fx-tab { border: none; border-right: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 17px; font-weight: 800; padding: 22px 8px; cursor: pointer; font-family: inherit; }
.fx-tab:last-child { border-right: none; }
.fx-tab:hover { background: rgba(255,255,255,.12); }
.fx-tab.active { background: #fff; color: #1f2937; border-radius: 12px 12px 0 0; }
.fx-tab-body { padding: 28px 36px 32px; }
.fx-lead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fx-lead-text { font-size: 16px; font-weight: 800; color: #1f2937; }
.fx-lead-help b { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #1f2937; color: #fff; font-size: 11px; align-items: center; justify-content: center; }
.fx-lead-help { font-size: 13px; color: #4b5563; cursor: help; display: inline-flex; align-items: center; gap: 6px; }
.fx-capture-box { background: #eef5f2; border-radius: 22px; padding: 22px 26px 18px; }
.fx-capture-row { display: flex; align-items: stretch; background: #fff; border: 2px solid #cfe0da; border-radius: 40px; padding: 6px 6px 6px 22px; gap: 8px; }
.fx-url { flex: 1; min-width: 0; border: none; outline: none; font-size: 20px; color: #1f2937; background: transparent; font-family: inherit; }
.fx-url::placeholder { color: #9ca3af; }
.fx-device-wrap { display: flex; align-items: center; }
.fx-device { border: none; background: transparent; font-size: 14px; color: #4b5563; cursor: pointer; font-family: inherit; }
.fx-go { display: flex; align-items: baseline; justify-content: center; gap: 10px; background: #e9a23b; color: #fff; border: none; border-radius: 30px; padding: 16px 40px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.fx-go b { font-size: 24px; font-weight: 800; }
.fx-go small { font-size: 14px; opacity: .95; }
.fx-go:hover { background: #d8922f; }
.fx-go:disabled { opacity: .6; cursor: wait; }
.fx-adv-toggle { margin-top: 14px; background: none; border: none; color: #374151; font-size: 15px; cursor: pointer; font-family: inherit; padding: 0 4px; }
.fx-adv-toggle:hover { text-decoration: underline; }
.fx-adv { margin-top: 10px; display: grid; gap: 6px; font-size: 13px; color: #374151; background: #fff; border-radius: 12px; padding: 12px 16px; }
.fx-adv-item b { margin-right: 6px; color: #1f2937; }
.fx-status { min-height: 20px; margin-top: 12px; font-size: 13px; color: #4b5563; }
.fx-status.is-error { color: #b91c1c; font-weight: 700; }
.fx-status.is-ok { color: #047857; font-weight: 700; }
.fx-status.is-busy { color: #1d4ed8; }
.fx-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.fx-drop { border: 2px dashed #9dc4bb; background: #f3f8f6; border-radius: 12px; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-align: center; padding: 20px; }
.fx-drop.over { background: #dff0ea; border-color: #5fa39a; }
.fx-drop-icon { width: 46px; height: 46px; color: #5fa39a; }
.fx-drop-icon svg { width: 100%; height: 100%; }
.fx-drop-text { font-size: 14px; font-weight: 700; color: #374151; line-height: 1.5; }
.fx-spec { display: grid; gap: 14px; font-size: 13px; color: #374151; padding-top: 12px; }
.fx-spec b { color: #1f2937; }
.fx-spec-or { font-weight: 700; color: #6b7280; }
.fx-video-url-row { display: flex; gap: 6px; margin-top: 6px; }
.fx-video-url-row input { flex: 1; min-width: 0; border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 10px; font-size: 13px; font-family: inherit; }
.fx-paste-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fx-paste-os { border: 1px solid #e5e7eb; border-radius: 12px; padding: 26px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 20px; font-weight: 800; color: #374151; }
.fx-paste-os-name { font-size: 13px; font-weight: 700; color: #4b5563; text-align: center; line-height: 1.5; }
.fx-paste-os kbd { display: inline-block; border: 1px solid #9ca3af; border-bottom-width: 3px; border-radius: 8px; padding: 8px 16px; background: #fff; font-family: inherit; font-size: 18px; }
.fx-paste-hint { margin-top: 14px; font-size: 12px; color: #6b7280; }
.fx-video-wrap { display: grid; gap: 12px; }
.fx-video { width: 100%; max-height: 480px; background: #000; border-radius: 10px; }
.fx-video-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fx-video-note { font-size: 13px; color: #4b5563; margin-right: auto; }
@media (max-width: 767px) {
  .fx-tabs { grid-template-columns: repeat(2, 1fr); }
  .fx-tab { font-size: 14px; padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.35); }
  .fx-tab-body { padding: 16px; }
  .fx-capture-box { padding: 14px; border-radius: 16px; }
  .fx-capture-row { flex-direction: column; border-radius: 16px; padding: 10px; }
  .fx-url { font-size: 16px; padding: 6px 4px; }
  .fx-go { padding: 12px 20px; }
  .fx-go b { font-size: 18px; }
  .fx-upload-grid, .fx-paste-grid { grid-template-columns: 1fr; gap: 14px; }
}
