/* --- BlogBooth Tool Island 基盤 --- */
.bb-tool-island {
  margin: -60px auto 80px;
  padding: 48px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,.12);
  border: 1px solid #edf2f7;
  position: relative;
  z-index: 10;
  max-width: 1040px;
  box-sizing: border-box;
}

.tool-main-header { text-align: left; padding-bottom: 24px; }
.tool-main-title { font-size: 28px; font-weight: 900; color: #1e293b; margin: 0; letter-spacing: -.02em; }
.tool-main-sub { font-size: 14px; color: #64748b; margin-top: 8px; }

/* ★ 追加：セクションラベル（基本設定など） */
.tool-section-label {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  font-size: 20px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 18px;
}
.tool-section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #f1f5f9;
}

/* 2カラム & 追従設定 */
.bb-faq-grid.bb-grid-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 960px) {
  .bb-faq-grid.bb-grid-layout { grid-template-columns: 1.1fr 0.9fr; }
  .bb-tool-preview { position: sticky !important; top: 100px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; z-index: 5; }
}

.bb-panel { background: linear-gradient(to bottom right,#f8fafc,#ffffff); border: 1px solid #edf2f7; border-radius: 20px; padding: 25px; box-sizing: border-box; }
.bb-input:focus { border-color: #6366f1; outline: none; box-shadow: 0 0 0 4px rgba(99,102,241,0.1); }


/* フォーム装飾 */
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
.form-row label { font-size: 12px; font-weight: 700; color: #475569; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 12px;
  font-size: 15px; background: #fff; transition: all .25s; box-sizing: border-box;
}
.form-row input:focus, .form-row textarea:focus { border-color: #a78bfa; outline: none; box-shadow: 0 0 0 4px rgba(167,139,250,.1); }

/* ボタン */
.btn--generate {
  background: linear-gradient(135deg,#a78bfa,#f472b6); color: #fff; border: none;
  min-height: 60px; border-radius: 50px; font-size: 18px; font-weight: 900; cursor: pointer; transition: .3s;
  box-shadow: 0 10px 20px rgba(244,114,182,.3);
}
.btn--generate:hover { transform: translateY(-2px); opacity: 0.9; }

/* ★ 追加：プレビュー見出し */
.bb-mini { font-size: 12px; color: #64748b; font-weight: 800; margin: 0 0 12px; letter-spacing: 0.05em; }

/* SNSモックアップ */
.bb-ogp__mock { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.bb-ogp__mock-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f8fafc; font-size: 12px; font-weight: 800; color: #475569; border-bottom: 1px solid #f1f5f9; }
.bb-ogp__av { width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; }
.bb-ogp__img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #0f172a; display: block; }
.bb-ogp__mock-body { padding: 12px; border-top: 1px solid #f1f5f9; }
.bb-ogp__title { font-weight: 700; font-size: 14px; color: #1e293b; margin-bottom: 4px; }
.bb-ogp__desc { font-size: 12px; color: #64748b; line-height: 1.5; }
.bb-ogp__link { font-size: 11px; color: #94a3b8; margin-top: 8px; text-transform: uppercase; }

/* カウンター・その他 */
.bb-ogp__counter { font-size: 11px; color: #94a3b8; margin-top: 4px; font-weight: 600; }
.bb-pre { background: #0b1220; color: #e2e8f0; border-radius: 14px; padding: 16px; font-family: monospace; font-size: 11px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; overflow-y: auto; }
.bb-links { margin-top: 15px; font-size: 12px; color: #64748b; font-weight: 700; }
.bb-links a { color: #7c3aed; text-decoration: none; }
.bb-action-area { background: #f1f5f9; padding: 20px; border-radius: 16px; margin-top: 20px; }

/* ★ スマホ対応（768px以下） */
@media (max-width: 768px) {
  .bb-tool-island {
    padding: 16px; /* 指定通り16pxに調整 */
    margin-top: -80px;
    border-radius: 16px;
  }
  .tool-main-title { font-size: 22px; }
  .tool-section-label { font-size: 18px; }
  .bb-panel { padding: 20px 15px; }
  .bb-faq-grid { grid-template-columns: 1fr; }
}