/* =====================================
   CHARNÉ LP 共通スタイル（414pxベース）
   ※ECforceのフォーム構造を壊さない安全設計
===================================== */
:root {
  --lp-bg: #f7e9f0;
  --lp-white: #ffffff;
  --lp-text: #333333;
}

/* -----------------------------
   ベース
----------------------------- */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--lp-text);
  background: var(--lp-bg);
}

/* LP内のみ画像フル幅 */
.lp-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------
   LP全体（414px幅固定）
----------------------------- */
.lp-wrapper {
  width: 100%;
  max-width: 414px;
  margin: 0 auto;
  background: transparent;
  padding-bottom: 140px; /* 画面下CTA分の余白 */
}

.lp-main,
.lp-block img {
  width: 100%;
  max-width: 414px;
  margin: 0 auto;
}

/* =====================================
   注文フォームカード
===================================== */
.lp-order {
  margin: 52px auto 120px;
  padding: 30px 22px 34px;
  width: 100%;
  max-width: 414px;
  box-sizing: border-box;

  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  color: #444444;

  /* ボタン等のはみ出しを隠す */
  overflow: hidden;
}

/* 注文フォームタイトル */
.lp-order-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  padding-bottom: 10px;
  position: relative;
  color: #222222;
}

.lp-order-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: #f3b6cd;
  margin: 8px auto 0;
}

/* テキスト */
.lp-order p {
  margin: 0 0 8px;
  line-height: 1.8;
  color: #555555;
}

/* 小見出し */
.lp-order h3,
.lp-order h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333333;
  margin: 20px 0 6px;
}

/* ラベル */
.lp-order label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555555;
  display: block;
  margin-bottom: 6px;
}

/* 入力欄 */
.lp-order input[type="text"],
.lp-order input[type="tel"],
.lp-order input[type="email"],
.lp-order input[type="number"],
.lp-order input[type="password"],
.lp-order textarea,
.lp-order select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  margin-bottom: 14px;

  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid #e0d0d8;
  background: #ffffff;
}

/* placeholder */
.lp-order input::placeholder,
.lp-order textarea::placeholder {
  color: #bbbbbb;
}

/* フォーカス時 */
.lp-order input[type="text"]:focus,
.lp-order input[type="tel"]:focus,
.lp-order input[type="email"]:focus,
.lp-order input[type="number"]:focus,
.lp-order input[type="password"]:focus,
.lp-order textarea:focus,
.lp-order select:focus {
  border-color: #f3b6cd;
  box-shadow: 0 0 0 2px rgba(243, 182, 205, 0.25);
  outline: none;
}

/* チェックボックス */
.lp-order input[type="checkbox"] {
  accent-color: #27ae60;
}

/* 注意書き */
.lp-note {
  margin-top: 16px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: #999999;
}

/* 利用規約リンク */
.lp-order a {
  color: #27ae60;
  text-decoration: underline;
}

/* =====================================
   申込みボタン（ECforce標準崩れ修正込み）
===================================== */

/* 背景画像をすべて無効化（白い四角対策） */
.lp-order .submit_bottom_ec,
.lp-order .submit_bottom_sp_ec,
.lp-order .btn_color_ec,
.lp-order .btn_color_sp_ec,
.lp-order .big_btn_ec,
.lp-order .big_btn_sp_ec,
.lp-order .payment_button_ec,
.lp-order .ec_payment_submit,
.lp-order .ec_button_submit,
.lp-order .ec_btn,
.lp-order .ec_button {
  background-image: none !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* ボタン本体：カード幅にフィット＆文字を表示 */
.lp-order .submit_bottom_wrap_ec,
.lp-order .submit_bottom_sp_ec,
.lp-order .submit_bottom_ec,
.lp-order .btn_color_sp_ec,
.lp-order .btn_color_ec,
.lp-order .big_btn_sp_ec,
.lp-order .big_btn_ec,
.lp-order input[type="submit"],
.lp-order button[type="submit"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px auto 0 !important;
  box-sizing: border-box !important;

  background: linear-gradient(90deg, #3bd57a, #1fb457) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(31, 180, 87, 0.35) !important;
  cursor: pointer;

  padding: 12px !important;

  /* 文字が消えないよう強制 */
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-align: center;

  /* ECforce側の text-indent を打ち消す */
  text-indent: 0 !important;
}

/* ボタン内テキストが span の場合も白に */
.lp-order .submit_bottom_sp_ec span,
.lp-order .submit_bottom_ec span,
.lp-order .btn_color_sp_ec span,
.lp-order .btn_color_ec span,
.lp-order .big_btn_sp_ec span,
.lp-order .big_btn_ec span {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  line-height: 1.4 !important;
}

/* 追加：あらゆるボタン内部 span を強制表示 */
.lp-order button span,
.lp-order input[type="submit"] span,
.lp-order .ec_button span,
.lp-order .ec_btn span,
.lp-order .payment_button_ec span {
  display: inline !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* 念のため、ボタン本体のテキスト色も再指定 */
.lp-order input[type="submit"],
.lp-order button[type="submit"],
.lp-order .ec_button,
.lp-order .ec_btn,
.lp-order .payment_button_ec {
  color: #ffffff !important;
  text-indent: 0 !important;
}

/* =====================================
   固定CTA（画面下）
===================================== */
.lp-fixed-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 414px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: transparent;
  box-shadow: none;
  z-index: 9999;
}

.lp-fixed-cta-btn {
  width: 100%;
  max-width: 414px;
  margin: 0 auto;
  display: block;

  padding: 18px 12px;
  border-radius: 999px;
  border: none;

  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;

  background: linear-gradient(90deg, #2ecc71, #27ae60);
  box-shadow: 0 10px 26px rgba(39, 174, 96, 0.35);

  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.lp-fixed-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(39, 174, 96, 0.45);
  opacity: 0.97;
}

/* =====================================
   PC：414px 固定センター表示
===================================== */
@media (min-width: 768px) {
  .lp-wrapper {
    max-width: 414px;
    margin: 0 auto;
  }

  .lp-fixed-cta {
    max-width: 414px;
  }
}

/* ================================
   注文フォーム内：文字サイズ調整
================================ */

/* フォーム全体の基準文字サイズをそろえる */
.lp-order,
.lp-order * {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 項目名（ラベル）は少しだけ小さめ＆濃く */
.lp-order label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #555555;
}

/* 入力欄のテキストは読みやすい標準サイズ */
.lp-order input[type="text"],
.lp-order input[type="tel"],
.lp-order input[type="email"],
.lp-order input[type="number"],
.lp-order input[type="password"],
.lp-order textarea,
.lp-order select {
  font-size: 0.9rem;
}

/* 注文内容・金額のテーブルを整える */
.lp-order table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.lp-order th,
.lp-order td {
  padding: 6px 0;
}

/* 左側：項目名を左寄せ、右側を右寄せ */
.lp-order th {
  text-align: left;
  font-weight: 500;
  color: #555555;
}

.lp-order td {
  text-align: right;
}

/* 金額行だけ少し大きく＆太字で強調 */
.lp-order [class*="price"],
.lp-order [class*="total"],
.lp-order td span {
  font-size: 0.95rem;
  font-weight: 700;
}

/* 合計金額はさらに一段階アップ */
.lp-order [class*="total"] td,
.lp-order [class*="total"] [class*="price"] {
  font-size: 1.02rem;
  font-weight: 700;
  color: #222222;
}

/* 注意書きは改めて小さめに（上書き） */
.lp-note {
  font-size: 0.72rem;
  line-height: 1.7;
  color: #999999;
}
