/*-------------------------------------*
 * 共通設定 (PC/SP共通のベーススタイル)
 *-------------------------------------*/

/* フォーム全体のラッパー（もしあれば） */
#landing_form_area {
  font-family: "Noto Sans JP", sans-serif;
  color: #4a4a4a;
  line-height: 1.6;
}

/* 入力フィールドの基本スタイル */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box; /* パディングを含める */
}

/* フォーカス時のスタイル（ゴールドの光彩） */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #C8AA6E;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(200, 170, 110, 0.3);
}

/*-------------------------------------*
 * PCデザイン可変部分
 *-------------------------------------*/

/* 【PC】フォームの項目名ラベル内必須アイコン */
span.form_required_ec {
  /* セクションラベルの色 */
  background: #C8AA6E; /* 優しいゴールドに変更 */
  /* セクションラベルのフォント色*/
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 5px;
  font-weight: normal;
  vertical-align: middle;
}

/* 【PC】フォームのセクションラベル (お客様情報の入力など) */
.landing_form_label_ec {
  /* セクションラベルの色 */
  background: linear-gradient(to right, #C8AA6E, #D4AF37); /* ゴールドのグラデーション */
  /* セクションラベルのフォント色*/
  color: #ffffff;
  /* セクションラベルのフォントサイズ */
  font-size: 1.1rem;
  font-family: "Noto Serif JP", serif; /* 見出しは明朝体で上品に */
  padding: 12px 20px;
  border-radius: 4px 4px 0 0; /* 上部だけ角丸 */
  text-align: center;
  letter-spacing: 0.05em;
  margin-top: 30px;
}

/* 【PC】フォーム入力ボックス内の基本デザイン */
table.landing_form_ec {
  width: 100%;
  border-collapse: separate; /* ボーダーの競合を防ぐ */
  border-spacing: 0;
  border: 1px solid #E0D5C0; /* 淡いゴールドベージュ */
  border-top: none; /* ラベルと繋げるため上はなし */
  background: #FFF;
  margin-bottom: 30px;
  border-radius: 0 0 4px 4px;
}

/* 【PC】フォーム左側　項目名ラベル */
.landing_form_ec th {
  background-color: #FDFBF7; /* 非常に淡いクリーム色 */
  border-bottom: 1px solid #F0EAD6;
  border-right: 1px solid #F0EAD6; /* 右側に境界線 */
  color: #555;
  padding: 15px;
  font-weight: 500;
  width: 30%; /* ラベル幅の調整 */
  vertical-align: middle;
}

/* 【PC】フォーム右側　入力ボックス */
.landing_form_ec td {
  border-bottom: 1px solid #F0EAD6;
  background-color: #ffffff;
  padding: 15px;
}

/* 最後の行のボーダーを消す処理（必要であれば） */
.landing_form_ec tr:last-child th,
.landing_form_ec tr:last-child td {
  border-bottom: none;
}


/* 【PC】購入ボタンのデザイン */
/* 画像背景ではなく、CSSでデザインしたボタンに変更 */
.submit_bottom_ec {
  border: 0px;
  width: 100%;
  max-width: 400px;
  height: auto; /* 高さは自動調整 */
  padding: 20px 0;
  margin: 40px auto;
  display: block;
  
  /* グラデーション背景 */
  background: linear-gradient(135deg, #E6C88B 0%, #C8AA6E 50%, #967D46 100%);
  
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  font-family: "Noto Serif JP", serif;
  text-align: center;
  border-radius: 50px; /* 丸みのあるボタン */
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(200, 170, 110, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* input[type=image]の場合は以下でテキストを表示できないため、
     ボタンタグへの変更か、背景画像として文字入り画像を使用する必要があります。
     ここではCSSデザインボタンとして記述しています。 */
}

.submit_bottom_ec:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(200, 170, 110, 0.5);
  opacity: 0.9;
}


/*-------------------------------------*
 * スマートフォンデザイン可変部分
 *-------------------------------------*/

/* 【SP】フォームの項目名ラベル内必須アイコン */
span.form_required_sp_ec {
  /* セクションラベルの色 */
  background: #C8AA6E;
  /* セクションラベルのフォント色*/
  color: #ffffff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 5px;
  vertical-align: middle;
}

/* 【SP】フォームのセクションラベル */
.landing_form_label_sp_ec {
  /* セクションラベルの色 */
  background: linear-gradient(to right, #C8AA6E, #D4AF37);
  /* セクションラベルのフォント色*/
  color: #ffffff;
  /* セクションラベルのフォントサイズ */
  font-size: 16px;
  font-family: "Noto Serif JP", serif;
  padding: 12px;
  text-align: center;
  margin-top: 20px;
  border-radius: 4px 4px 0 0;
}

/* 【SP】フォームの項目名ラベル */
.form_box_label_sp_ec {
  background: #FDFBF7; /* PCと同じ淡いクリーム色 */
  border-bottom: 1px solid #F0EAD6;
  border-top: none; /* 上ボーダーは前の要素の下ボーダーと重なるため消すか調整 */
  border-left: 1px solid #E0D5C0; /* 外枠 */
  border-right: 1px solid #E0D5C0; /* 外枠 */
  color: #333;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
}

/* 【SP】入力エリア（td相当のdivなど） */
/* 具体的なクラス名がない場合は推測ですが、SP時はtableではなくdiv構成になることが多いです */
.form_box_input_sp_ec, 
.landing_form_sp_ec td { 
    background: #fff;
    border-left: 1px solid #E0D5C0;
    border-right: 1px solid #E0D5C0;
    border-bottom: 1px solid #E0D5C0;
    padding: 15px;
}


/* 【SP】購入ボタンのデザイン */
.submit_bottom_sp_ec {
  border: 0px;
  width: 90%;
  height: auto;
  padding: 18px 0;
  margin: 30px auto;
  display: block;
  
  /* PCと同じグラデーション */
  background: linear-gradient(135deg, #E6C88B 0%, #C8AA6E 50%, #967D46 100%);
  
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(200, 170, 110, 0.3);
}

/*-------------------------------------*
 * 共通設定 (PC/SP共通のベーススタイル)
 *-------------------------------------*/

/* フォーム全体のラッパー */
#landing_form_area {
  font-family: "Noto Sans JP", sans-serif;
  color: #4a4a4a;
  line-height: 1.6;
}

/* 入力フィールドの基本スタイル */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box; 
  width: 100%; /* 幅を親要素に合わせる */
}

/* フォーカス時のスタイル */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #C8AA6E;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(200, 170, 110, 0.3);
}

/*-------------------------------------*
 * PCデザイン可変部分
 *-------------------------------------*/

/* ★修正箇所: 商品画像とフォームのレイアウト変更に対応 */
/* 商品オファーカード（フォームを含む全体枠） */
#lp-root .product-offer-card {
  display: flex;
  flex-direction: column; /* ★縦並びに変更 */
  align-items: center; /* 中央揃え */
  background: #fff;
  border: 2px solid #E6C88B;
  border-radius: 12px;
  padding: 40px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(200, 170, 110, 0.15);
}

/* ★修正箇所: 商品画像を一番上に移動 */
#lp-root .product-offer-img {
  width: 100%; /* 横幅いっぱい */
  display: flex;
  justify-content: center;
  padding-right: 0; /* 余白リセット */
  margin-bottom: 30px; /* 下に余白 */
  order: -1; /* ★Flexboxで一番上に表示 */
}
#lp-root .product-offer-img img {
  max-width: 180px; /* サイズ調整 */
  width: auto;
  height: auto;
}

/* 商品情報・フォームエリア */
#lp-root .product-offer-content {
  width: 100%; /* ★横幅いっぱい */
  text-align: center; /* 中央揃え */
}

/* 【PC】フォームの項目名ラベル内必須アイコン */
span.form_required_ec {
  background: #C8AA6E;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 5px;
  font-weight: normal;
  vertical-align: middle;
  display: inline-block;
}

/* 【PC】フォームのセクションラベル */
.landing_form_label_ec {
  background: linear-gradient(to right, #C8AA6E, #D4AF37);
  color: #ffffff;
  font-size: 1.1rem;
  font-family: "Noto Serif JP", serif;
  padding: 12px 20px;
  border-radius: 4px 4px 0 0;
  text-align: center;
  letter-spacing: 0.05em;
  margin-top: 30px;
  width: 100%; /* ★幅いっぱい */
}

/* ★修正箇所: フォームテーブルを横幅いっぱいに */
/* 【PC】フォーム入力ボックス内の基本デザイン */
table.landing_form_ec {
  width: 100%; /* ★幅いっぱい */
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #E0D5C0;
  border-top: none;
  background: #FFF;
  margin-bottom: 30px;
  border-radius: 0 0 4px 4px;
  table-layout: fixed; /* レイアウトを固定 */
}

/* 【PC】フォーム左側　項目名ラベル */
.landing_form_ec th {
  background-color: #FDFBF7;
  border-bottom: 1px solid #F0EAD6;
  border-right: 1px solid #F0EAD6;
  color: #555;
  padding: 15px;
  font-weight: 500;
  width: 30%;
  vertical-align: middle;
  text-align: left; /* 左揃え */
}

/* 【PC】フォーム右側　入力ボックス */
.landing_form_ec td {
  border-bottom: 1px solid #F0EAD6;
  background-color: #ffffff;
  padding: 15px;
  text-align: left; /* 左揃え */
}

/* 最後の行のボーダー処理 */
.landing_form_ec tr:last-child th,
.landing_form_ec tr:last-child td {
  border-bottom: none;
}


/* ★修正箇所: 購入ボタンに文字を追加 */
/* 【PC】購入ボタンのデザイン */
.submit_bottom_ec {
  border: 0px;
  width: 100%;
  max-width: 400px;
  height: auto;
  padding: 20px 0; /* 高さを確保 */
  margin: 40px auto;
  display: block;
  
  /* グラデーション背景 */
  background: linear-gradient(135deg, #E6C88B 0%, #C8AA6E 50%, #967D46 100%);
  
  /* 文字スタイル（もしvalue属性などが効かない場合用） */
  color: transparent; /* 元のテキストがあれば隠す */
  font-size: 0;       /* 元のテキストがあれば隠す */
  
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(200, 170, 110, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* 擬似要素の位置基準 */
}

/* 擬似要素で文字を表示 */
.submit_bottom_ec::after {
  content: "購入はこちら"; /* ★文字を追加 */
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.1em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  pointer-events: none; /* クリックを親要素に通す */
}

.submit_bottom_ec:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(200, 170, 110, 0.5);
  opacity: 0.9;
}


/*-------------------------------------*
 * スマートフォンデザイン可変部分
 *-------------------------------------*/

/* 【SP】フォームの項目名ラベル内必須アイコン */
span.form_required_sp_ec {
  background: #C8AA6E;
  color: #ffffff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 5px;
  vertical-align: middle;
  display: inline-block;
}

/* 【SP】フォームのセクションラベル */
.landing_form_label_sp_ec {
  background: linear-gradient(to right, #C8AA6E, #D4AF37);
  color: #ffffff;
  font-size: 16px;
  font-family: "Noto Serif JP", serif;
  padding: 12px;
  text-align: center;
  margin-top: 20px;
  border-radius: 4px 4px 0 0;
  width: 100%;
}

/* 【SP】フォームの項目名ラベル */
.form_box_label_sp_ec {
  background: #FDFBF7;
  border-bottom: 1px solid #F0EAD6;
  border-top: none;
  border-left: 1px solid #E0D5C0;
  border-right: 1px solid #E0D5C0;
  color: #333;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
}

/* 【SP】入力エリア */
.form_box_input_sp_ec, 
.landing_form_sp_ec td { 
    background: #fff;
    border-left: 1px solid #E0D5C0;
    border-right: 1px solid #E0D5C0;
    border-bottom: 1px solid #E0D5C0;
    padding: 15px;
    text-align: left;
}

/* ★修正箇所: SP用購入ボタンにも文字を追加 */
/* 【SP】購入ボタンのデザイン */
.submit_bottom_sp_ec {
  border: 0px;
  width: 90%;
  height: auto;
  padding: 18px 0;
  margin: 30px auto;
  display: block;
  
  background: linear-gradient(135deg, #E6C88B 0%, #C8AA6E 50%, #967D46 100%);
  
  color: transparent; /* 元のテキストを隠す */
  font-size: 0;
  
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(200, 170, 110, 0.3);
  position: relative;
}

/* 擬似要素で文字を表示 */
.submit_bottom_sp_ec::after {
  content: "購入はこちら"; /* ★文字を追加 */
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  pointer-events: none;
}