/* ============================================================
   publisher_fast.css — スマホで爆速掲載（10ステップ オーバーレイウィザード）
   ============================================================ */

/* ----------------------------------------------------------
   fw-overlay: フルスクリーン オーバーレイ
   ---------------------------------------------------------- */
.fw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

/* ----------------------------------------------------------
   fw-card: 中央カード
   ---------------------------------------------------------- */
.fw-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 40px rgba(2, 6, 23, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
}

/* ----------------------------------------------------------
   fw-header: カードヘッダー（戻る / ステップカウンター / キャンセル）
   ---------------------------------------------------------- */
.fw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.fw-back-btn,
.fw-cancel-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  color: var(--muted);
  border-radius: 6px;
  line-height: 1;
}
.fw-back-btn:hover,
.fw-cancel-btn:hover { background: var(--line); color: var(--text); }
.fw-back-btn[style*="display: none"],
.fw-back-btn[style*="display:none"] { visibility: hidden; }

.fw-step-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------
   fw-body: スクロール可能なコンテンツエリア
   ---------------------------------------------------------- */
.fw-body {
  padding: 20px 20px 12px;
  overflow-y: auto;
  flex: 1;
}

/* ----------------------------------------------------------
   fw-footer: カードフッター
   ---------------------------------------------------------- */
.fw-footer {
  padding: 10px 20px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.fw-next-btn {
  width: 100%;
}

.fw-step-error {
  font-size: 13px;
  color: var(--danger);
  margin: 0 0 4px;
  padding: 4px 0;
}

/* ----------------------------------------------------------
   fw-step-title / hint / note
   ---------------------------------------------------------- */
.fw-step-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
}

.fw-step-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.fw-step-note {
  font-size: 12px;
  color: var(--muted);
  background: rgba(20, 184, 166, 0.05);
  border-left: 3px solid rgba(20, 184, 166, 0.35);
  border-radius: 0 4px 4px 0;
  padding: 8px 10px;
  line-height: 1.6;
  margin: 12px 0 0;
}

/* ----------------------------------------------------------
   fw-field: 入力フィールドラップ
   ---------------------------------------------------------- */
.fw-field {
  margin-bottom: 16px;
}

.fw-field-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.fw-field-note {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.fw-textarea {
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

/* ----------------------------------------------------------
   写真ステップ（Steps 1-3）
   ---------------------------------------------------------- */
.fw-photo-preview {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px dashed var(--line);
  position: relative;
}

.fw-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fw-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.fw-photo-placeholder-icon  { font-size: 36px; opacity: 0.5; }
.fw-photo-placeholder-label { font-size: 12px; }

.fw-retake-btn {
  width: 100%;
  margin-bottom: 8px;
}

.fw-photo-skip-wrap {
  text-align: center;
  margin-top: 4px;
}

.fw-skip-btn {
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
}
.fw-skip-btn:hover { background: var(--line); }

/* ----------------------------------------------------------
   スキップリンク（Step9）
   ---------------------------------------------------------- */
.fw-skip-top,
.fw-skip-bottom {
  text-align: right;
  margin-bottom: 12px;
}
.fw-skip-bottom { margin-top: 16px; margin-bottom: 0; }

.fw-skip-link {
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
}
.fw-skip-link:hover { background: rgba(20, 184, 166, 0.07); }

/* ----------------------------------------------------------
   住所入力行
   ---------------------------------------------------------- */
.fast-address-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.fast-address-input-row .input {
  flex: 1;
  min-width: 0;
}

/* ウィザードカード内では縦並び */
.fw-card .fast-address-input-row {
  flex-direction: column;
}
.fw-card .fast-address-input-row .input {
  flex: unset;
  width: 100%;
  box-sizing: border-box;
}

.fw-address-input {
  width: 100%;
  box-sizing: border-box;
}

.fw-address-help {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.fast-location-btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 13px;
  padding: 0 12px;
}

/* ウィザードカード内では全幅ボタン */
.fw-card .fast-location-btn {
  width: 100%;
  font-size: 14px;
  white-space: normal;
  flex-shrink: unset;
  padding: unset;
}

.fw-address-confirmed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fw-address-confirmed-text {
  font-size: 15px;
  line-height: 1.6;
  word-break: break-all;
  background: #f0fdf4;
  border: 2px solid var(--accent, #14b8a6);
  border-radius: 8px;
  padding: 12px 14px;
  color: #1a1a1a;
}
.fw-address-change-btn {
  align-self: flex-start;
  font-size: 13px;
}

/* ----------------------------------------------------------
   レンジスライダー + 数値入力行（Steps 5, 6）
   ---------------------------------------------------------- */
.fw-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fw-range-input {
  flex: 1;
  min-width: 120px;
  accent-color: var(--accent);
}
.fw-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent, #14b8a6);
  cursor: pointer;
}
.fw-range-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--accent, #14b8a6);
  cursor: pointer;
}

.fw-num-input {
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   問い合わせトグルボタン（Step8）
   ---------------------------------------------------------- */
.fw-contact-toggle-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fw-contact-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  user-select: none;
}
.fw-contact-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.fw-contact-toggle:hover:not(.active) { background: rgba(20, 184, 166, 0.06); }

/* ----------------------------------------------------------
   詳細項目セクション（Step9）
   ---------------------------------------------------------- */
.fw-opt-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.fw-opt-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.fw-opt-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.fw-opt-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 2px;
}

.fw-opt-label {
  font-size: 13px;
  font-weight: 600;
}

.fw-opt-num {
  max-width: 120px;
}

/* ----------------------------------------------------------
   確認画面（Step10）
   ---------------------------------------------------------- */
.fw-confirm-photos {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.fw-confirm-photo {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.fw-confirm-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  margin-bottom: 14px;
}
.fw-confirm-table th {
  text-align: left;
  padding: 6px 8px 6px 0;
  color: var(--muted);
  font-weight: 600;
  width: 110px;
  vertical-align: top;
  white-space: nowrap;
}
.fw-confirm-table td {
  padding: 6px 0;
  vertical-align: top;
  word-break: break-all;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.fw-confirm-table tr:last-child td { border-bottom: none; }

.fw-confirm-billing-notice {
  font-size: 12px;
  color: #666;
  background: #fff8e1;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 0 0 14px;
  border-left: 3px solid #ffc107;
  line-height: 1.6;
}

.fw-step10-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ----------------------------------------------------------
   required バッジ
   ---------------------------------------------------------- */
.fast-required {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--danger);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ----------------------------------------------------------
   ラジオグループ（ピル型ボタン）— 既存パターン維持
   ---------------------------------------------------------- */
.fast-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.fast-radio-group label {
  display: flex;
  align-items: center;
  flex-direction: row;
  cursor: pointer;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 400;
  background: #fff;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  user-select: none;
  white-space: nowrap;
}

.fast-radio-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fast-radio-group label:has(input:checked) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ----------------------------------------------------------
   任意詳細 opt-input row（既存パターン維持）
   ---------------------------------------------------------- */
.fast-opt-input {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fast-opt-unit {
  font-size: 13px;
  color: var(--muted);
}

/* ----------------------------------------------------------
   進行状況メッセージ
   ---------------------------------------------------------- */
.fast-progress {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  min-height: 20px;
  margin: 0;
}
.fast-progress.ok     { color: var(--ok); }
.fast-progress.danger { color: var(--danger); }
.fast-progress.busy   { color: var(--warn); }

/* ----------------------------------------------------------
   現在位置確認モーダル — 既存
   ---------------------------------------------------------- */
.fast-location-modal { border: none; border-radius: 8px; padding: 0; max-width: 340px; width: 90%; }
.fast-location-modal::backdrop { background: rgba(2, 6, 23, 0.5); }
.fast-location-modal-inner { padding: 20px; }
.fast-location-modal h3 { margin: 0 0 8px; font-size: 15px; }
.fast-location-modal p { margin: 0 0 12px; font-size: 14px; color: #555; }
.fast-location-addr { font-size: 14px; font-weight: bold; margin-bottom: 6px; }
.fast-location-latlng { font-size: 12px; color: #888; margin-bottom: 10px; }
.fast-location-map { width: 100%; height: 180px; background: #eee; margin-bottom: 12px; border-radius: 4px; overflow: hidden; }
.fast-location-actions { display: flex; gap: 8px; }
.fast-location-actions .btn { flex: 1; }

/* ----------------------------------------------------------
   公開最終確認モーダル — 既存 fast-confirm-modal
   ---------------------------------------------------------- */
.fast-confirm-modal {
  border: none;
  border-radius: 14px;
  padding: 0;
  max-width: 540px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 40px rgba(2, 6, 23, 0.22);
}
.fast-confirm-modal::backdrop {
  background: rgba(2, 6, 23, 0.5);
}

.fast-confirm-inner {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.fast-confirm-header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 18px;
}

.fast-confirm-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.fast-confirm-notice {
  font-size: 13px;
  color: var(--muted);
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.fast-confirm-photos {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.fast-confirm-photo {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.fast-confirm-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.fast-confirm-table th {
  text-align: left;
  padding: 6px 8px 6px 0;
  color: var(--muted);
  font-weight: 600;
  width: 110px;
  vertical-align: top;
  white-space: nowrap;
}
.fast-confirm-table td {
  padding: 6px 0;
  vertical-align: top;
  word-break: break-all;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.fast-confirm-table tr:last-child td { border-bottom: none; }

.fast-confirm-footer {
  padding: 12px 20px 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.fast-confirm-billing-notice {
  font-size: 12px;
  color: #666;
  background: #fff8e1;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 8px 0 14px;
  border-left: 3px solid #ffc107;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   写真ステップ — 旧ウィザード互換スタイル
   ---------------------------------------------------------- */
.fast-wizard-steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.fast-wizard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s;
}
.fast-wizard-dot.active { background: var(--accent); }
.fast-wizard-dot.done   { background: rgba(20, 184, 166, 0.4); }

.fast-wizard-preview-area {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px dashed var(--line);
  position: relative;
}

.fast-wizard-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.fast-wizard-preview-img.has-image { display: block; }

.fast-wizard-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.fast-wizard-placeholder-icon  { font-size: 36px; opacity: 0.5; }
.fast-wizard-placeholder-label { font-size: 12px; }

.fast-wizard-retake-btn {
  width: 100%;
  margin-bottom: 10px;
}

.fast-wizard-footer {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.fast-wizard-footer .btn { flex: 1; }

/* ----------------------------------------------------------
   旧フォーム — ステップカード・メモ
   ---------------------------------------------------------- */
.fast-step {
  margin-bottom: 12px;
}

.fast-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 10px;
}

/* ----------------------------------------------------------
   旧フォーム — 写真サムネイル
   ---------------------------------------------------------- */
.fast-photos-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fast-photo-thumb {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.fast-photo-thumb-empty {
  width: 88px;
  height: 66px;
  border-radius: 6px;
  border: 1px dashed var(--line);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0.35;
}

.fast-photo-thumb-btn {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  width: 88px;
  height: 66px;
  flex-shrink: 0;
}
.fast-photo-thumb-btn:active { opacity: 0.75; }

.fast-photo-thumb-btn .fast-photo-thumb {
  border: none;
  border-radius: 0;
  width: 88px;
  height: 66px;
}

.fast-photo-edit-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  pointer-events: none;
}

.fast-photo-thumb-btn-empty {
  border-style: dashed;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
}
.fast-photo-add-icon  { font-size: 20px; opacity: 0.5; }
.fast-photo-add-label { font-size: 10px; }

/* ----------------------------------------------------------
   旧フォーム — 入力グリッド
   ---------------------------------------------------------- */
.fast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .fast-grid { grid-template-columns: 1fr; }
}

.fast-grid .full { grid-column: 1 / -1; }

.fast-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

/* ----------------------------------------------------------
   旧フォーム — 詳細項目 折りたたみ
   ---------------------------------------------------------- */
.fast-optional-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.fast-optional-toggle:hover { opacity: 0.8; }

.fast-optional-arrow {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 12px;
}
.fast-optional-toggle[aria-expanded="true"] .fast-optional-arrow {
  transform: rotate(90deg);
}

.fast-optional-body { display: none; }
.fast-optional-body.open { display: block; }

.fast-opt-group {
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.fast-opt-group:first-child { border-top: none; padding-top: 0; }

.fast-opt-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ----------------------------------------------------------
   旧フォーム — 詳細項目 行・ラジオ
   ---------------------------------------------------------- */
.fast-opt-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 4px;
}

.fast-opt-label {
  font-size: 13px;
  font-weight: 600;
}

.fast-opt-radios {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.fast-opt-radios label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: normal;
}

/* ----------------------------------------------------------
   旧フォーム — 固定アクションバー
   ---------------------------------------------------------- */
.fast-sticky-bar {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px 0 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  z-index: 10;
  margin-top: 12px;
}
