/* --- BlogBooth Tool Island 基盤 (背景ドットなし) --- */
.bb-tool-island {
  margin: -60px auto 80px; 
  padding: 48px; 
  background: #ffffff; /* 純白に固定 */
  border-radius: 12px;
  /* 影を少し強めて、bodyのドット背景から浮き立たせる */
  box-shadow: 0 20px 50px rgba(0,0,0,.1); 
  border: 1px solid #e2e8f0;
  max-width: 1040px; 
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

/* 2カラムレイアウト & 追従設定 */
.bb-grid-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 960px) {
  .bb-grid-layout { grid-template-columns: 1.1fr 0.9fr; }
  .bb-tool-preview { 
    position: sticky !important; 
    top: 100px; 
    max-height: calc(100vh - 120px); 
    overflow-y: auto; 
  }
}

/* 各パネルの装飾（島の中のセクション） */
.bb-panel { 
  background: #f8fafc; 
  border: 1px solid #edf2f7; 
  border-radius: 20px; 
  padding: 25px; 
}

/* 入力行 */
.bb-item-list { display: flex; flex-direction: column; gap: 12px; }
.bb-row-input { 
  display: flex; gap: 10px; align-items: center; 
  padding: 15px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px;
}
.row-inputs { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.row-inputs input { 
  width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; 
  border-radius: 8px; font-size: 14px; box-sizing: border-box;
}

/* 削除・追加ボタン */
.btn-remove { 
  background: #f1f5f9; color: #64748b; border: none; width: 36px; height: 36px; 
  border-radius: 8px; cursor: pointer; transition: .2s;
}
.btn-remove:hover { background: #fee2e2; color: #ef4444; }

.bb-btn-add {
  padding: 12px 20px; background: #ffffff; border: 2px dashed #cbd5e1; 
  color: #64748b; border-radius: 10px; font-weight: 800; cursor: pointer; transition: .2s;
}
.bb-btn-add:hover { border-color: #a78bfa; color: #a78bfa; background: #f5f3ff; }

/* コードプレビューエリア */
.bb-pre {
  background: #1e293b !important; color: #e2e8f0 !important;
  padding: 20px; border-radius: 12px; font-size: 13px; line-height: 1.6;
  overflow-x: auto; white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* モバイル調整 */
@media (max-width: 768px) {
  .bb-row-input { padding: 12px; }

  .bb-tool-island {
    padding: 16px;
    margin: -80px 0 40px; /* 左右に少し余白を持たせ、上部の食い込みを緩和 */
  }

.bb-panel {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }
}
