@charset "UTF-8";
/* ===========================================================================
   新菱冷熱 さわやかキャンペーン cp14　応募フォーム（FOFA：入力・確認・完了）
   読み込み順: reset.css → global.css → cp14/assets/css/common.css → このファイル

   ・背景、リボン／タイトル、クイズ（.cp14-quiz-box の中身）は common.css（支給 LP）の
     指定をそのまま使う。そのためテンプレートは LP と同じ .cp14 > .cp14-container の中に
     組み、フォームの幅も LP の .cp14-inner に合わせている。
   ・.cp14 は font-size:10px（狭い幅では vw）を基準にしているので、フォーム側の文字サイズは
     すべて px で指定する（クイズ部分だけは LP の em 指定のまま）。
   ・色は common.css から拾ったもの:
       紺 #174A9E → 青 #386BBF（見出しのグラデーション）／罫 #6D8EC5・#C6D4E9
       ピンク #E53D90（必須・エラー）／ピンク #F273A6 → 水色 #40C7D9（ボタン）
       文字 #1A1A1A・#2C292A
   ・SP は 767px 以下（LP の <picture>・.d-md-* と同じ境界）。
   =========================================================================== */


/* --------------------------------------------------------------------------
   背景のシャボン玉（common.css の .cp14-container::before / ::after）
   common.css は縦長の画像を contain で敷いているため、確認・完了画面のように
   丈の短い画面では画像全体が縮み、シャボン玉が小さく・詰まって見える。
   フォームの画面では横幅に合わせて敷き、入力画面と同じ大きさ・位置にそろえる
   （はみ出す下側は切れる）。
   -------------------------------------------------------------------------- */
.cp14-container::before,
.cp14-container::after {
  background-size: 100% auto;
}


/* --------------------------------------------------------------------------
   フォームの箱（LP のクイズ箱と同じ: 紺 4px の枠＋グラデーションの見出し帯）
   -------------------------------------------------------------------------- */
.index_contWrap {
  padding-bottom: 80px;
}

.form_wrap {
  overflow: hidden;
  border: 4px solid #174A9E;
  border-radius: 12px;
  background: #fff;
  color: #1A1A1A;
}

.form_h2 {
  padding: 22px 10px 18px;
  border-bottom: 2px solid #6D8EC5;
  background: linear-gradient(90deg, #174A9E 0%, #386BBF 100%);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
}

.border_01 {
  padding: 0 16px;
}

.border_02 {
  padding: 0 24px 36px;
}


/* --------------------------------------------------------------------------
   フロー画像・リード文・小見出し
   -------------------------------------------------------------------------- */
.form_flow {
  max-width: 410px;
  margin: 32px auto 20px;
}

.form_flow img {
  margin: 0 auto;
}

.form_txt_lead {
  font-size: 16px;
  text-align: center;
  text-wrap: balance; /* 折り返すときに 1、2 文字だけ次の行へ落ちないように */
}

.form_wrap h3 {
  margin: 36px 0 20px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #174A9E 0%, #386BBF 100%);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
}


/* --------------------------------------------------------------------------
   クイズ（中身の見た目は common.css の .cp14-quiz-box … による）
   -------------------------------------------------------------------------- */
.form_quiz {
  margin: 0 auto 8px;
}

.form_quiz img {
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   項目の行（クイズの答え .form_ans dl ／ 応募者情報 .form_cellWrap）
   PC: 左に項目名・右に入力欄　SP: 縦積み
   -------------------------------------------------------------------------- */
.form_ans dl,
.form_cellWrap {
  display: flex;
  align-items: baseline;
  gap: 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid #C6D4E9;
  font-size: 16px;
}

.form_ans dl:last-child,
.form_cellWrap:last-child {
  border-bottom: 0;
}

.form_ans dt,
.form_cellTtl {
  flex: 0 0 200px;
  color: #174A9E;
  font-weight: bold;
}

.form_ans dd,
.form_cellInput {
  flex: 1 1 0;
  min-width: 0;
}

/* 入力欄の下の注記（※…）は入力値より一段小さく */
.form_cellInput {
  color: #2C292A;
  font-size: 14px;
}

.required {
  display: inline-block;
  width: 40px;
  margin-right: 8px;
  border-radius: 4px;
  background: #E53D90;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  vertical-align: 2px;
}

/* 任意項目は「必須」マークの幅だけ字下げして項目名の頭をそろえる */
.notreq {
  padding-left: 48px;
}


/* --------------------------------------------------------------------------
   入力欄
   -------------------------------------------------------------------------- */
.form_wrap input[type="text"],
.form_wrap select {
  max-width: 100%;
  margin: 0 0 6px;
  padding: 8px 10px;
  border: 1px solid #6D8EC5;
  border-radius: 6px;
  background-color: #fff;
  color: #1A1A1A;
  font-size: 16px;
  line-height: 1.5;
}

.form_wrap input[type="text"]:focus,
.form_wrap select:focus {
  border-color: #174A9E;
  outline: 2px solid #386BBF;
  outline-offset: 1px;
}

.form_wrap input.input_type1 {
  width: 100%;
  max-width: 380px;
}

.form_wrap input.input_type2 {
  width: 100%;
}

/* 姓・名を 1 行に並べる。768px 幅（入力欄の列が約 380px）でも折り返さない幅 */
.form_wrap input.input_name {
  width: 140px;
}

.form_wrap input.input_tel,
.form_wrap input[name^="c_postalcode"] {
  width: 90px;
}

.form_txt_name {
  display: inline-block;
  min-width: 2.2em;
  font-size: 16px;
  text-align: right;
}

.form_cellInput label {
  display: inline-block;
  margin-right: 24px;
  font-size: 16px;
  cursor: pointer;
}

.form_cellInput input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 6px 3px 0;
  accent-color: #174A9E;
}

/* 姓と名（せい・めい）の間: PC は全角空白、SP は改行 */
.spOnly {
  display: none;
}

.form_wrap .error {
  display: block;
  color: #E53D90;
  font-size: 14px;
  font-weight: bold;
}

.form_wrap .error:empty {
  display: none;
}


/* --------------------------------------------------------------------------
   確認画面の値表示
   -------------------------------------------------------------------------- */
#kakunin .form_ans dd,
.form_cellInput.chk {
  color: #1A1A1A;
  font-size: 16px;
  overflow-wrap: anywhere;
}


/* --------------------------------------------------------------------------
   ボタン（LP の「同意して応募する」.cp14-cta a と同じピンク→水色のグラデーション）
   入力画面 .buttons > .index_application ／ 確認画面 .form_btnbox > p
   -------------------------------------------------------------------------- */
.buttons,
.form_btnbox {
  margin: 36px auto 0;
}

.index_application {
  max-width: 440px;
  margin: 0 auto;
}

.form_btnbox {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.form_btnbox p {
  flex: 1 1 0;
  max-width: 360px;
}

.index_application input,
.form_btnbox input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 20px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #F273A6 0%, #40C7D9 100%);
  box-shadow: 0 6px 16px rgba(0, 56, 104, 0.12);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 56, 104, 0.3); /* LP より文字が小さいぶん、水色側で白文字が沈まないように */
  cursor: pointer;
  transition: opacity 0.3s;
}

/* 「入力画面に戻る」は白地に紺の枠 */
.form_btnbox .form_btn_back input {
  background: #fff;
  box-shadow: inset 0 0 0 3px #174A9E, 0 6px 16px rgba(0, 56, 104, 0.12);
  color: #174A9E;
  text-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .index_application input:hover,
  .form_btnbox input:hover {
    opacity: 0.8;
  }
}


/* --------------------------------------------------------------------------
   完了画面
   -------------------------------------------------------------------------- */
.form_txt_thanks1 {
  margin: 28px 0 16px;
  color: #174A9E;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  text-wrap: balance;
}

.form_txt_thanks2 {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  text-wrap: balance; /* 折り返すときに 1、2 文字だけ次の行へ落ちないように */
}

/* 「トップページに戻る」は確認画面の「入力画面に戻る」と同じ白地に紺の枠 */
.form_totop {
  max-width: 440px;
  margin: 36px auto 0;
}

.form_totop a {
  display: block;
  padding: 20px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 3px #174A9E, 0 6px 16px rgba(0, 56, 104, 0.12);
  color: #174A9E;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .form_totop a:hover {
    opacity: 0.8;
  }
}


/* ==========================================================================
   SP（767px 以下）
   ========================================================================== */
@media screen and (max-width: 767px) {
  .index_contWrap {
    padding-bottom: 48px;
  }

  .form_h2 {
    padding: 14px 8px 12px;
    font-size: 20px;
  }

  .border_01 {
    padding: 0 12px;
  }

  .border_02 {
    padding: 0 0 24px;
  }

  .form_flow {
    margin: 20px auto 14px;
  }

  .form_txt_lead {
    font-size: 13px;
  }

  .form_wrap h3 {
    margin: 28px 0 14px;
    padding: 8px;
    font-size: 16px;
  }

  .form_ans dl,
  .form_cellWrap {
    display: block;
    padding: 14px 0;
  }

  .form_ans dt,
  .form_cellTtl {
    margin-bottom: 8px;
  }

  .notreq {
    padding-left: 0;
  }

  .form_cellInput {
    font-size: 13px;
  }

  .form_wrap input.input_type1 {
    max-width: none;
  }

  /* 「姓」「せい」の見出し（2.2em）＋空白ぶんを引いて、右端を他の入力欄にそろえる */
  .form_wrap input.input_name {
    width: calc(100% - 2.2em - 6px);
  }

  .form_wrap input.input_tel,
  .form_wrap input[name^="c_postalcode"] {
    width: 27%;
    max-width: 90px;
  }

  .pcOnly {
    display: none;
  }

  .spOnly {
    display: inline;
  }

  .buttons,
  .form_btnbox {
    margin-top: 28px;
  }

  /* 確認画面は「応募する」を上、「戻る」を下に積む */
  .form_btnbox {
    flex-direction: column-reverse;
    align-items: center;
    gap: 16px;
  }

  .form_btnbox p {
    flex: none;
    width: 100%;
    max-width: 440px;
  }

  .index_application input,
  .form_btnbox input {
    padding: 16px 12px;
    font-size: 18px;
  }

  .form_txt_thanks1 {
    margin: 20px 0 12px;
    font-size: 18px;
  }

  .form_txt_thanks2 {
    font-size: 13px;
  }

  .form_totop {
    margin-top: 28px;
  }

  .form_totop a {
    padding: 16px 12px;
    font-size: 18px;
  }
}
