@charset "UTF-8";
/* =========================================================
   雨漏り修理LP お問い合わせページ・お問い合わせ完了ページ共通スタイル（contact）
   contact.html と thanks.html で読み込む
   アイキャッチ（.page_head）・パンくずは under-layer.css、送信ボタン（.btn_more）・CTA は common.css、会社情報は common.css
   PCファースト / ブレークポイント 1280px・960px・568px
   ========================================================= */

/* ===== メールフォーム ===== */
.contact_page {
  position: relative;
  padding-bottom: 70px;
  overflow: hidden;
}

/* 背景の波紋（装飾） */
.contact_page::before {
  content: "";
  position: absolute;
  top: 35px;
  left: calc(50% + 277px);
  width: 479px;
  height: 479px;
  background: url("../img/top/ripple.webp") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.contact_page .container {
  position: relative;
}

@media only screen and (max-width: 960px) {
  .contact_page {
    padding: 30px 0 40px;
  }

  .contact_page::before {
    top: 12px;
    left: auto;
    right: -102px;
    width: 240px;
    height: 240px;
  }
}

/* ===== メールフォーム：入力欄の表（左に紺の項目名、右に入力欄） ===== */
.contact_form_table {
  margin-top: 38px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c_navy);
  border-radius: 10px;
}

.contact_form_row {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
}

.contact_form_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 30px 30px 20px;
  background: var(--c_navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact_form_label {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.1em;
  color: #fff;
}

.contact_form_required {
  flex-shrink: 0;
  width: 57px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0.1em;
  text-align: center;
  color: #d81f2a;
  background: #fff;
}

.contact_form_body {
  padding: 21px 110px 21px 30px;
  border-bottom: 1px solid var(--c_navy);
}

.contact_form_row:last-child .contact_form_head,
.contact_form_row:last-child .contact_form_body {
  border-bottom: 0;
}

/* 入力欄の共通 */
.contact_form_input,
.contact_form_select,
.contact_form_textarea {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #222;
  background: #f5f5f5;
  border: 0;
  border-radius: 0;
}

.contact_form_input::placeholder,
.contact_form_textarea::placeholder {
  color: #666;
  opacity: 1;
}

.contact_form_input:focus,
.contact_form_select:focus,
.contact_form_textarea:focus {
  outline: 2px solid var(--c_orange);
  outline-offset: 0;
}

/* ご住所：〒＋郵便番号、都道府県、市区町村・番地 */
.contact_form_address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 22px;
  padding-left: 37px;
}

.contact_form_zip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact_form_zip_mark {
  flex-shrink: 0;
  font-size: 16px;
  color: #222;
}

.contact_form_input_short,
.contact_form_select {
  width: 310px;
  max-width: 100%;
}

.contact_form_select {
  margin-left: 28px;
  padding-right: 50px;
  padding-left: 26px;
  color: #000;
  /* 矢印はブラウザ標準のものを消し、細い「∨」の画像に差し替え */
  -webkit-appearance: none;
  appearance: none;
  background: #d9d9d9 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 8%27%3E%3Cpath d=%27M1 1l6 6 6-6%27 fill=%27none%27 stroke=%27%23333%27 stroke-width=%271.4%27/%3E%3C/svg%3E") no-repeat right 22px center / 14px 8px;
  cursor: pointer;
}

.contact_form_input_city {
  width: auto;
  margin-left: 28px;
}

/* お問い合わせ内容 */
.contact_form_body .contact_form_textarea {
  height: 238px;
  padding: 14px 18px;
  line-height: 1.75;
  resize: vertical;
}

.contact_form_body_message {
  padding-top: 18px;
  padding-bottom: 26px;
}

.contact_form_note {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(153, 153, 153, 0.6);
}

@media only screen and (max-width: 1280px) {
  .contact_form_row {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .contact_form_body {
    padding-right: 30px;
  }
}

/* SP は表を画面幅いっぱいにし、項目名の帯の下に入力欄を置く */
@media only screen and (max-width: 960px) {
  .contact_form_table {
    margin: 32px -17px 0;
    border-width: 2px 0;
    border-radius: 0;
  }

  .contact_form_row {
    display: block;
  }

  .contact_form_head {
    align-items: center;
    min-height: 46px;
    padding: 5px 17px;
    border-bottom: 0;
  }

  .contact_form_label {
    font-size: 18px;
  }

  .contact_form_required {
    width: 52px;
    margin-top: 0;
    font-size: 12px;
    line-height: 20px;
  }

  .contact_form_body,
  .contact_form_row:last-child .contact_form_body {
    padding: 20px 17px;
    border-bottom: 0;
  }

  .contact_form_input,
  .contact_form_select,
  .contact_form_textarea {
    height: 45px;
    padding: 0 9px;
    font-size: 15px;
  }

  .contact_form_address {
    gap: 10px;
    padding: 16px 17px 18px;
  }

  .contact_form_zip {
    gap: 6px;
  }

  .contact_form_zip_mark {
    width: 15px;
    font-size: 15px;
  }

  .contact_form_input_short,
  .contact_form_select {
    width: 155px;
  }

  .contact_form_select {
    margin-left: 21px;
    padding-right: 34px;
    padding-left: 13px;
    background-position: right 13px center;
    background-size: 12px 7px;
  }

  .contact_form_input_city {
    margin-left: 21px;
  }

  .contact_form_body .contact_form_textarea {
    height: 190px;
    padding: 10px 9px;
  }

  .contact_form_body_message {
    padding-bottom: 22px;
  }

  .contact_form_note {
    margin-top: 10px;
    line-height: 18px;
  }
}

/* ===== メールフォーム：同意文と送信ボタン（ボタンは共通の .btn_more） ===== */
.contact_form_agree {
  margin-top: 46px;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.1em;
  text-align: center;
  color: #333;
}

.contact_form_agree a {
  text-decoration: underline;
}

.contact_form_agree a:hover {
  text-decoration: none;
}

.contact_form_submit_wrap {
  margin-top: 42px;
  text-align: center;
}

.contact_form_submit {
  width: 424px;
  max-width: 100%;
  font-family: inherit;
  border: 0;
  cursor: pointer;
}

@media only screen and (max-width: 960px) {
  .contact_form_agree {
    margin-top: 28px;
    font-size: 15px;
  }

  .contact_form_submit_wrap {
    margin-top: 26px;
  }

  .contact_form_submit {
    width: 228px;
  }
}

@media only screen and (max-width: 568px) {
    .contact_form_table {
      margin: 20px -17px 0;
    }
    .sec_head{
      margin-bottom: 20px;
    }
  }

/* =========================================================
   お問い合わせ完了ページ（thanks.html）
   ========================================================= */

/* ===== お問い合わせ完了 ===== */
.thanks_page {
  padding: 34px 0 50px;
  text-align: center;
}

.thanks_page_title {
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: var(--c_navy);
}

.thanks_page_lead {
  margin-top: 39px;
  font-size: 32px;
  font-weight: 700;
  line-height: 56px;
  color: var(--c_navy);
}

/* フリーメールの注意書き（水色の枠） */
.thanks_page_note {
  margin-top: 40px;
  padding: 38px 20px;
  font-size: 16px;
  line-height: 24px;
  color: #333;
  background: var(--c_border);
  border-radius: 10px;
}

@media only screen and (max-width: 1280px) {
  .thanks_page_title {
    font-size: 40px;
  }

  .thanks_page_lead {
    font-size: 28px;
    line-height: 48px;
  }
}

@media only screen and (max-width: 960px) {
  .thanks_page {
    padding: 30px 0 26px;
  }

  .thanks_page_title {
    font-size: 27px;
    line-height: 34px;
  }

  .thanks_page_lead {
    margin-top: 20px;
    font-size: 20px;
    line-height: 28px;
  }

  .thanks_page_note {
    margin-top: 20px;
    padding: 20px;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
    border-radius: 5px;
  }
}

/* =========================================================
   Contact Form 7（WordPress）
   CF7 は入力欄を span.wpcf7-form-control-wrap で包むため、レイアウトが崩れないよう調整
   ========================================================= */
.contact_form .wpcf7-form-control-wrap {
  display: block;
}

.contact_form_zip .wpcf7-form-control-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.contact_form_address .wpcf7-form-control-wrap[data-name="addr"] {
  margin-left: 28px;
}

.contact_form_address .wpcf7-form-control-wrap .contact_form_input_city {
  width: 100%;
  margin-left: 0;
}

/* 入力エラーのメッセージ */
.contact_form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 14px;
  color: #d00;
}

/* 送信結果のメッセージ */
.contact_form .wpcf7-response-output {
  margin: 30px 0 0;
  padding: 12px 16px;
  font-size: 15px;
  text-align: center;
}

.contact_form .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

@media only screen and (max-width: 960px) {
  .contact_form_address .wpcf7-form-control-wrap[data-name="addr"] {
    margin-left: 21px;
  }

  .contact_form .wpcf7-not-valid-tip {
    font-size: 13px;
  }

  .contact_form .wpcf7-response-output {
    font-size: 14px;
  }
}
