/*
 * LP Builder — フロントエンド表示CSS
 * クラス名はすべて lpb- プレフィックス付き。
 * 他テーマ・プラグインのスタイルに干渉しない設計。
 *
 * 最優先ルール:
 *   - ボタン位置は position:absolute + %指定のみ。px固定禁止。
 *   - 画像コンテナは position:relative + width:100%。
 */

/* ── リセット（スコープ内のみ） ───────────── */
.lpb-lp-body {
  margin: 0;
  padding: 0;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.lpb-lp-main {
  width: 100%;
  overflow-x: hidden;
}

/* ── Section ─────────────────────────────── */
.lpb-section {
  position: relative;
  width: 100%;
}

/* ── 画像コンテナ（%ボタン配置の基準） ────── */
.lpb-section-image-wrap {
  position: relative;   /* ← ボタンの absolute 基準 */
  width: 100%;
  overflow: hidden;
  line-height: 0;       /* 画像下の隙間を消す */
}

.lpb-picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.lpb-section-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── ボタン（%座標による絶対配置） ────────── */
.lpb-btn {
  position: absolute;   /* ← left/top/width/height はすべて % */
  display: block;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* PCボタン / SPボタン の出し分け */
.lpb-btn-pc { display: block; }
.lpb-btn-sp { display: none; }

@media (max-width: calc(var(--lpb-bp, 768px) - 1px)) {
  .lpb-btn-pc { display: none; }
  .lpb-btn-sp { display: block; }
}

/* ── クリックアニメーション ────────────────── */
@keyframes lpb-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes lpb-bounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-6px); }
  70%       { transform: translateY(-3px); }
}

.lpb-anim-pulse:hover  { animation: lpb-pulse  0.5s ease-in-out; }
.lpb-anim-bounce:hover { animation: lpb-bounce 0.6s ease; }

/* ── フォーム（Phase 2用のベーススタイル） ─── */
.lpb-form-wrap {
  padding: 24px 16px;
  max-width: 640px;
  margin: 0 auto;
}

.lpb-form-field {
  margin-bottom: 16px;
}

.lpb-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d2327;
}

.lpb-form-label .lpb-required {
  color: #b32d2e;
  margin-left: 4px;
}

.lpb-form-input,
.lpb-form-select,
.lpb-form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  font-size: 15px;
  color: #1d2327;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.lpb-form-input:focus,
.lpb-form-select:focus,
.lpb-form-textarea:focus {
  border-color: #2271b1;
  outline: 2px solid rgba(34,113,177,0.25);
  outline-offset: 0;
}

.lpb-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.lpb-form-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.lpb-form-submit:hover { background: #c0392b; }

/* ── Cookie同意バナー（Phase 2用ベース） ───── */
.lpb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(29,35,39,0.95);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9000;
  font-size: 13px;
  line-height: 1.5;
  backdrop-filter: blur(4px);
}

.lpb-cookie-banner__text { flex: 1; }

.lpb-cookie-banner__accept {
  white-space: nowrap;
  padding: 8px 18px;
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 480px) {
  .lpb-cookie-banner { flex-direction: column; align-items: stretch; }
}

/* ── アクセシビリティ ────────────────────── */
.lpb-btn:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .lpb-anim-pulse:hover,
  .lpb-anim-bounce:hover {
    animation: none;
  }
}
