/* --- BlogBooth ツール共通・基盤スタイル --- */
.bb-tool-island {
  margin: -60px auto 80px; padding: 40px; background: #fff;
  border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.08);
  border: 1px solid #f1f5f9; max-width: 1040px; position: relative; z-index: 10;
}
.tool-main-header { text-align: center; margin-bottom: 40px; }
.tool-main-title { font-size: 28px; font-weight: 800; color: #1e293b; margin-bottom: 8px; }
.tool-main-sub { color: #64748b; font-size: 15px; }

/* 2カラムレイアウト */
.bb-grid-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 960px) { .bb-grid-layout { grid-template-columns: 1.2fr 0.8fr; } }

.bb-panel { background: #f8fafc; padding: 32px; border-radius: 20px; border: 1px solid #f1f5f9; }
.tool-section-label { display: inline-block; padding: 4px 12px; background: #e0e7ff; color: #4338ca; font-size: 12px; font-weight: 800; border-radius: 6px; margin-bottom: 16px; }

/* 入力要素・ヒント */
.bb-label { display: block; font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 8px; }
.bb-input, .bb-select { width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; font-size: 14px; transition: .2s; box-sizing: border-box; }
.bb-input:focus { border-color: #6366f1; outline: none; box-shadow: 0 0 0 4px rgba(99,102,241,0.1); }
.bb-hint { font-size: 11px; color: #94a3b8; margin-top: 6px; line-height: 1.5; }

/* モード切り替えタブ */
.gmq-mode-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.mode-tab { flex: 1; position: relative; cursor: pointer; }
.mode-tab input { position: absolute; opacity: 0; }
.mode-tab span {
  display: block; padding: 12px; text-align: center; border: 2px solid #e2e8f0;
  border-radius: 12px; font-size: 13px; font-weight: 700; color: #64748b; transition: .2s;
}
.mode-tab input:checked + span { border-color: #6366f1; background: #f5f7ff; color: #4338ca; }

/* 生成ボタン */
.btn--primary-action {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: #fff; border: none; padding: 16px;
  border-radius: 14px; font-weight: 800; font-size: 16px;
  cursor: pointer; transition: .3s;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.2);
}
.btn--primary-action:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(67, 56, 202, 0.3); }

/* 直接URL入力セクション */
.gmq-ui-divider { display: flex; align-items: center; margin: 30px 0 20px; color: #94a3b8; font-size: 12px; font-weight: 600; }
.gmq-ui-divider::before, .gmq-ui-divider::after { content: ""; flex: 1; height: 1px; background: #f1f5f9; margin: 0 15px; }
.gmq-url-input-wrap { display: flex; gap: 8px; align-items: center; }
.bb-input--sm { flex: 1; min-width: 0; font-size: 13px; height: 42px; }
.bb-btn-mini {
  flex-shrink: 0; width: 60px; height: 42px; background: #f1f5f9; 
  color: #475569; border: none; border-radius: 10px; font-weight: 700; cursor: pointer;
}

/* デザイン設定（config-item） */
.gmq-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.config-item { display: flex; flex-direction: column; }
.bb-mini { font-size: 11px; color: #64748b; margin-bottom: 4px; display: block; }
.bb-color-picker { width: 100%; height: 44px; border: 1px solid #cbd5e1; border-radius: 10px; cursor: pointer; padding: 4px; background: #fff; }

/* プレビュー・QR表示 */
.preview-card { background: #fff; padding: 24px; border-radius: 20px; border: 1px solid #e2e8f0; text-align: center; }
.qr-display {
  width: 100%; max-width: 240px; aspect-ratio: 1 / 1;
  margin: 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-display canvas, .qr-display img { max-width: 100% !important; height: auto !important; }
.bb-mini-code { font-family: monospace; font-size: 11px; background: #f8fafc; padding: 8px; border-radius: 6px; margin: 16px 0; color: #64748b; word-break: break-all; }

/* アクションボタン（ダウンロード・コピー） */
.bb-action-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.bb-btn-download, .bb-btn-copy {
  padding: 12px; border-radius: 12px; font-weight: 700; cursor: pointer; border: none; transition: .2s; font-size: 14px;
}
.bb-btn-download { background: #6366f1; color: #fff; }
.bb-btn-download:hover { background: #4338ca; }
.bb-btn-download:disabled { background: #cbd5e1; cursor: not-allowed; }
.bb-btn-copy { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.bb-btn-copy:hover { background: #e2e8f0; }
.bb-btn-copy:disabled { opacity: 0.5; cursor: not-allowed; }

/* パンくずリスト */
.bb-breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* スマートフォン調整 */
@media (max-width: 768px) {
  .bb-tool-island { padding: 16px; margin: -80px 0 40px; }
  .bb-panel { padding: 16px; width: 100%; box-sizing: border-box; }
  .bb-input, .bb-select, .bb-input--sm { font-size: 16px !important; }
}