/* ============================================================
   BlogBooth Tool Island Layout
   ============================================================ */
.bb-tool-island {
  margin: -60px auto 80px;
  padding: 48px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 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;
  margin-bottom: 0;
  padding-bottom: 24px;
}

.tool-main-title {
  font-size: 28px;
  font-weight: 900;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.tool-main-sub {
  font-size: 14px;
  color: #64748b;
  margin-top: 8px;
}

/* ============================================================
   Form Sections & Inputs
   ============================================================ */
.tool-section { margin-bottom: 40px; }

.tool-section-label {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  font-size: 22px;
  font-weight: 800;
  color: #444;
  margin-bottom: 30px;
}

.tool-section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #f1f5f9;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr; /* 使いやすさ優先で縦並び */
  gap: 24px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.form-row label span {
  color: #f43f5e;
  font-size: 11px;
  margin-left: 4px;
}

.form-row input {
  height: 52px;
  padding: 0 16px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 16px;
  background: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-sizing: border-box;
}

.form-row input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
  outline: none;
}

/* ============================================================
   Main Action Button
   ============================================================ */
.actions-center {
  text-align: center;
  margin: 60px 0 20px;
}

.btn--generate {
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  color: #fff;
  border: none;
  min-height: 68px; /* height固定からmin-heightへ */
  padding: 16px 56px;
  border-radius: 50px;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(244, 114, 182, 0.4);
  transition: all 0.3s ease;
  width: auto;
  max-width: 100%;
}

/* ============================================================
   Result Display Area
   ============================================================ */
.result-card {
  display: flex;
  background: linear-gradient(to bottom right, #f8fafc, #ffffff);
  padding: 40px;
  border-radius: 28px;
  gap: 40px;
  align-items: center;
  border: 1px solid #edf2f7;
  flex-direction: column; /* 常に中央配置 */
}

.qr-box {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#qrcode img, #qrcode canvas {
  max-width: 240px !important;
  height: auto !important;
  margin: 0 auto;
}

.actions-download {
  display: flex;
  flex-direction: column; /* スマホ・PC共通で縦並びが押しやすい */
  gap: 16px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.btn--sub {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px; /* スマホで押しやすい高さ */
  padding: 12px 24px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-weight: 800;
  font-size: 16px; /* 文字サイズアップ */
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-sizing: border-box;
}

#vc-share {
  border-color: #a78bfa;
  color: #7c3aed;
  background: #fdfaff;
}

.btn--sub:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

/* ============================================================
   Utilities & Responsive
   ============================================================ */
@media (max-width: 768px) {
  .bb-tool-island { padding: 32px 16px; margin-top: -80px; }
  .tool-main-title { font-size: 24px; }
  .result-card { padding: 24px 16px; }
  .btn--generate { width: 100%; padding: 16px 20px; font-size: 17px; }
}