@charset "UTF-8";

/*
 * 退去受付フォーム専用CSS
 * 旧 taikyo/css/style.css をWP環境向けに移植
 * ・header/footer は旧サイト仕様のシンプルなものを使用
 * ・画像パスをルート絶対パスに修正
 * ・CF7ボタン（button[type="submit"]）に対応
 */

/* header / footer */
header,
footer {
  width: 100%;
  padding: 10px 0;
  background-color: #fff;
}

.copyright {
  text-align: center;
  font-size: 12px;
}

/* 共通 */
.sp {
  display: none;
}

.inner {
  max-width: 1000px;
  width: 92%;
  margin: 0 auto;
}

.flex {
  display: flex;
}

/* メインイメージ */
#main_Img {
  width: 100%;
  padding: 100px 0;
  background: url(../img/taikyo/main.jpg) no-repeat center center;
  background-size: cover;
  text-align: center;
}

/* フォームラッパー全体背景 */
#All_Wrap {
  display: block;
  width: 100%;
  padding: 50px 0;
  background-color: #ececec;
}

.form_Wrap h3 {
  margin-bottom: 20px;
  font-size: 24px;
  letter-spacing: 0.2em;
  text-align: center;
}

.form_Wrap h3::after {
  display: block;
  content: '';
  width: 80px;
  height: 2px;
  margin: 20px auto 0;
  background-color: #555;
}

.lead_Txt {
  padding: 0 0 30px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  color: #b84343;
}

.lead_Txt small {
  font-size: 14px;
}

/* ステップインジケーター */
.step {
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  width: 90%;
  padding: 0;
  margin: 0 auto 50px;
  background: url(../img/taikyo/line.png) repeat-x center;
  background-size: 6px 2px;
  box-sizing: border-box;
}

.step li {
  position: relative;
  width: 100px;
  height: 100px;
  background-color: #a2a2a2;
  border-radius: 100px;
}

.step li.here {
  background-color: #3bb8a1;
}

.step li p {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-align: center;
  transform: translate(-50%, -50%);
}

/* フォームリスト */
.form_ListWrap {
  max-width: 900px;
  width: 94%;
  padding: 10px 0;
  margin: 0 auto;
  background-color: #fff;
}

.form_ListWrap dl {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 3px 0;
  border-top: 1px dotted #ddd;
  font-size: 16px;
}

.form_ListWrap dt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 30%;
  padding: 10px 20px;
  border-right: 1px solid #999;
  box-sizing: border-box;
}

.form_ListWrap dt .required {
  display: inline-block;
  padding: 5px 12px;
  color: #fff;
  background-color: #b84343;
  font-size: 10px;
  box-sizing: border-box;
}

.form_ListWrap dd {
  width: 70%;
  padding: 10px 20px;
  box-sizing: border-box;
}

.form_ListWrap .notes {
  font-size: 12px;
  color: #000;
  line-height: 1.4;
  margin-top: 5px;
}

/* フォーム要素 */
#form input,
#form select,
#form textarea {
  padding: 10px;
  margin: 0;
  border: 1px solid #999;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

#form input[type="text"],
#form input[type="email"],
#form input[type="tel"] {
  width: 100%;
}

#form textarea {
  width: 100%;
  height: 280px;
}

/* block01: 解約種類ラジオボタン */
.block01 dl {
  border-top: none;
}

.block01 dd .cancel {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 400px;
  width: 60%;
}

.block01 dd .cancel div {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 200px;
  width: 49%;
}

.block01 dd .cancel div:first-child {
  margin-right: 2%;
}

/* CF7ラジオボタンをボタン風に表示（use_label_element使用時の構造に対応）
   構造: .wpcf7-list-item > label > input + span.wpcf7-list-item-label */
.block01 dd .cancel .wpcf7-form-control-wrap,
.block01 dd .cancel .wpcf7-radio,
.block01 dd .cancel .wpcf7-list-item {
  width: 100%;
}

.block01 dd .cancel .wpcf7-list-item label {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #999;
  border-radius: 5px;
  box-sizing: border-box;
  transition: .3s;
  cursor: pointer;
  [type=radio] {
    position: absolute;
    clip: rect(0 0 0 0);
  }
}

.block01 dd .cancel .wpcf7-list-item label:hover {
  opacity: .6;
}

.block01 dd .cancel .wpcf7-list-item label:has(input[type="radio"]:checked) {
  background-color: #e2c1c1;
}

/* 住居/駐車場セクションは初期非表示 */
.type01_List,
.type02_List {
  display: none;
}

/* 日付フィールド幅 */
.block10 input[type="text"],
.block11 input[type="text"] {
  max-width: 10em;
}

/* block12: 確認内容 */
.block12 dl {
  border-top: 1px dotted #ddd;
}

.block12 dd {
  padding: 10px 20px;
}

.block12 p {
  font-size: 16px;
  line-height: 1.8;
  padding-left: 1rem;
  text-indent: -1.2rem;
}

.block12 p::before {
  content: "※";
}

.block12 dd p:last-of-type {
  margin-bottom: 10px;
}

/* CF7チェックボックスはinput非表示にしない（CF7が独自スタイルを持つ） */
.block12 label.kakunin {
  display: block;
  position: relative;
  margin: 0;
  padding-left: 26px;
  padding-top: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  line-height: 1.3;
  [type=checkbox] {
    position: absolute;
    clip: rect(0 0 0 0);
  }
}

.block12 .checkmark {
  position: absolute;
  top: 10px;
  left: 0;
  height: 20px;
  width: 20px;
  border: 1px solid #999;
  border-radius: 4px;
  box-sizing: border-box;
}

.block12 .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #FFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

/* CF7はinputがspanの中に入るため :has() で対応 */
.block12 label.kakunin:has(input:checked) .checkmark {
  background: #b84343;
  border-color: #b84343;
}

.block12 label.kakunin:has(input:checked) .checkmark::after {
  opacity: 1;
}

/* ライフラインセクション */
.form_Box02,
.form_Box04 {
  margin: 50px 0;
}

.form_Box04 .lifeline_Txt {
  max-width: 900px;
  width: 94%;
  margin: 0 auto 10px;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.block13 dl,
.block19 dl {
  border-top: none;
}

/* 解約届送付先セクション */
.form_Box03 {
  margin: 0 0 50px;
}

.block18 dl {
  border-top: none;
}

.block18 dd {
  padding: 10px 20px;
}

.block18 article {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.block18 article:not(:first-child) {
  margin-top: 20px;
}

.block18 article p {
  display: block;
  width: 20%;
}

.block18 article select {
  margin-left: -1.2em;
}

.block18 .kaiyaku_notes {
  display: block;
  font-size: 12px;
  color: #000;
  line-height: 1.4;
  margin-top: 5px;
}

.block18 .kaiyaku1 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 17px;
}

.block18 label.kaiyaku_kakunin input {
  width: auto;
  transform: scale(1.2);
}

.block18 label.kaiyaku_kakunin span {
  padding-left: 5px;
  font-size: 16px;
  line-height: 1.3;
}

.block21 input[type="tel"] {
  max-width: 10em;
}

/* 住所表示エリア */
.block23 dd {
  padding: 10px 20px;
}

.block23 article {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.block23 article:not(:first-child) {
  margin-top: 20px;
}

.block23 article p {
  display: block;
  width: 20%;
}

/* 電力契約者名その他欄 */
.customerNumber_Name {
  margin-top: 15px;
}

.customerNumber_Name span {
  display: block;
  padding: 0 0 5px;
  font-size: 14px;
}

/* 確認メールアドレス注意書き */
.attention {
  display: block;
  font-size: 13px;
  text-align: left;
  line-height: 1.3;
  margin: 10px 0;
}

/* エラー表示 */
.error-message,
.mail-error-msg {
  display: inline-block;
  font-size: 14px;
  color: #b84343;
  letter-spacing: 0;
  line-height: 1.2;
  border: 1px solid #b84343;
  padding: 8px 7px 8px 10px;
}

.error-highlight,
.wpcf7-not-valid {
  border: 2px solid #b84343 !important;
}

/* CF7のエラーメッセージをフォームデザインに合わせる */
.wpcf7-not-valid-tip {
  color: #b84343;
  font-size: 14px;
}

/* ボタンエリア */
.kakunin_btn {
  max-width: 300px;
  width: 80%;
  margin: 0 auto;
}

.btn_Area {
  width: 100%;
  max-width: 650px;
  margin: 50px auto 0;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  max-width: 300px;
  width: 80%;
  margin: 0 auto 20px;
}

/* 戻るボタン（CF7 [previous] が生成する input[type="button"]） */
input.btn_back,
button.btn_back {
  width: 100%;
  display: block;
  padding: 20px;
  color: #000;
  background: #b5b5b5;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  transition: .3s;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}

/* 送信・確認ボタン（CF7 [submit] が生成する input[type="submit"] または button） */
input.btn_approval,
button.btn_approval {
  width: 100%;
  padding: 20px;
  color: #fff;
  background-color: #000;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  transition: .3s;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
}

input.btn_back:hover,
button.btn_back:hover,
input.btn_approval:hover,
button.btn_approval:hover {
  opacity: .6;
}

/* iOSでのデフォルトスタイルをリセット */
input[type="submit"],
input[type="button"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}

input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
  display: none;
}

/* thanksページ */
.thanks_Page {
  max-width: 900px;
  width: 94%;
  margin: 0 auto;
  text-align: center;
}

.thanks_Page h4 {
  padding: 0 0 20px;
  font-size: 24px;
  text-align: center;
}

.thanks_Page p {
  font-size: 16px;
  line-height: 2;
  text-align: center;
}

.thanks_Page address {
  max-width: 500px;
  width: 94%;
  padding: 20px;
  margin: 50px auto 0;
  background-color: #fff;
  box-sizing: border-box;
}

.thanks_Page address h5 {
  padding: 0 0 10px;
  font-size: 18px;
  line-height: 1;
}

.thanks_Page address p {
  display: flex;
  justify-content: center;
  align-items: center;
}

.thanks_Page address span {
  display: block;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  line-height: 1;
}

.thanks_Page address a {
  display: block;
  color: #000;
  font-size: 38px;
  line-height: 1;
  pointer-events: none;
}

/* =========================================
   レスポンシブ（859px以下）
   ========================================= */
@media only screen and (max-width: 859px) {

  .sp {
    display: block;
  }

  .pc {
    display: none;
  }

  .lead_Txt {
    padding: 0 0 20px;
    font-size: 14px;
  }

  .lead_Txt small {
    font-size: 12px;
  }

  .step {
    width: 94%;
    margin: 0 auto 20px;
  }

  .step li {
    width: 80px;
    height: 80px;
  }

  .step li p {
    font-size: 14px;
  }

  .form_ListWrap {
    max-width: 900px;
    width: 94%;
    padding: 0;
    margin: 0 auto;
    background-color: #fff;
  }

  .form_ListWrap dl {
    flex-direction: column;
    padding: 0;
    border-top: 1px solid #555;
  }

  .form_ListWrap dt {
    width: 100%;
    padding: 10px;
    background-color: #cfcfcf;
    border-right: none;
  }

  .form_ListWrap dd {
    width: 100%;
    padding: 20px 10px;
  }

  #form select {
    width: 100%;
  }

  #form textarea {
    height: 180px;
  }

  .block01 dl {
    border-top: none;
  }

  .block01 dd > div {
    max-width: 49%;
  }

  .block01 dd .cancel {
    width: 100%;
  }

  .block12 dd {
    padding: 20px 10px;
  }

  .block12 p {
    font-size: 14px;
    text-indent: -0.9rem;
  }

  .block12 label {
    margin: 0 auto;
  }

  .block12 label.kakunin {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
  }

  .form_Box04 .lifeline_Txt {
    font-size: 14px;
  }

  .block13 dl {
    border-top: none;
  }

  .form_Box03 {
    margin: 0 0 20px;
  }

  .block18 dl {
    border-top: none;
  }

  .block18 article {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .block18 article:not(:first-child) {
    margin-top: 20px;
  }

  .block18 article p {
    width: 100%;
    padding: 0 0 5px;
  }

  .block18 article select {
    margin-left: 0;
  }

  /* thanksページ */
  .thanks_Page h4 {
    font-size: 22px;
    line-height: 1.5;
  }

  .thanks_Page p {
    display: block;
    width: 94%;
    margin: 0 auto;
    font-size: 14px;
    line-height: 2;
    text-align: justify;
  }

  .thanks_Page p br {
    display: none;
  }

  .thanks_Page address {
    margin: 20px auto 0;
  }

  .thanks_Page address a {
    pointer-events: unset;
  }
}

.wpcf7-list-item {
  margin: 0;
}