/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/



/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/



/* =========================
   Contact Form 7
========================= */

.wpcf7{
  width:100%;
  max-width:720px;
  margin:0 auto;
  padding:48px 56px;
  background:#fff;
  color:#202020;
  box-sizing:border-box;
}

.CF7_table{
  width:100%;
  border-collapse:collapse;
  border:none;
}

.CF7_table tr{
  border-bottom:1px solid rgba(32,32,32,.16);
}

.CF7_table th,
.CF7_table td{
  padding:14px 0;
  border:none !important;
  background:transparent !important;
  vertical-align:top;
  box-sizing:border-box;
}

.CF7_table th{
  width:190px;
  padding-right:22px;

  font-size:14px;
  font-weight:600;
  line-height:1.7;
  letter-spacing:.04em;
  color:#202020;
  text-align:left;
  white-space:nowrap;
}

.CF7_table td{
  width:auto;
}

/* 必須・任意 */
.CF7_req,
.CF7_unreq{
  display:inline-block;
  margin-right:8px;
  padding:4px 8px;

  font-size:11px;
  font-weight:600;
  line-height:1;
  letter-spacing:.05em;
  color:#fff;
  border-radius:2px;
}

.CF7_req{
  background:#219C9B;
}

.CF7_unreq{
  background:#999;
}

/* input */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea{
  width:100%;
  padding:12px 14px;

  border:1px solid rgba(32,32,32,.35);
  border-radius:0;
  background:#fff;

  font-size:14px;
  line-height:1.6;
  color:#202020;
  box-sizing:border-box;
}

.wpcf7 textarea{
  min-height:180px;
  resize:vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder{
  color:rgba(32,32,32,.45);
}

/* チェックボックス */
.wpcf7-list-item{
  margin:0 0 8px 0;
}

.wpcf7 input[type="checkbox"]{
  margin-right:6px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"]{
  display:block;
  min-width:240px;
  height:58px;
  margin:28px auto 0;
  padding:0 32px;

  border:none;
  border-radius:12px;
  background:#E62B3A;
  color:#fff;

  font-size:15px;
  font-weight:700;
  letter-spacing:.06em;
  cursor:pointer;

  transition:background .25s ease, color .25s ease;
}

.wpcf7 input[type="submit"]:hover{
  background:#202020;
  color:#fff;
}

/* エラー・メッセージ */
.wpcf7-not-valid-tip{
  margin-top:6px;
  font-size:12px;
  color:#E62B3A;
}

.wpcf7-response-output{
  margin:24px 0 0 !important;
  padding:14px 16px !important;
  font-size:13px;
  line-height:1.7;
}

/* selectの文字切れ対策 */
.wpcf7 select{
  height:48px;
  line-height:48px;
  padding:0 42px 0 14px;
  appearance:auto;
  -webkit-appearance:menulist;
  box-sizing:border-box;
}

/* 確認項目〜送信ボタン上の仕切り線を消す */
.CF7_table tr:last-child,
.CF7_table tr:last-of-type{
  border-bottom:none !important;
}

/* 送信ボタン直前の行だけ線を消す */
.CF7_table tr:has(input[type="submit"]){
  border-bottom:none !important;
}

.wpcf7 input[type="submit"]{
  margin-top:18px;
}

/* 最後の行の下線を強制で消す */
.CF7_table tbody tr:nth-last-child(1){
  border-bottom:none !important;
}

/* クイズの答えラベルを左寄せ */
.wpcf7-form-control-wrap[data-name="random-capital-quiz"]{
  display:block;
  text-align:left !important;
}

.wpcf7-quiz-label{
  display:block;
  text-align:left !important;
  margin:8px 0 6px;
  font-weight:600;
}

/* quiz入力欄も左寄せ */
.wpcf7-form-control-wrap[data-name="random-capital-quiz"] input{
  text-align:left !important;
}

@media (max-width:767px){

  .wpcf7{
    max-width:100%;
    padding:32px 22px;
  }

  .CF7_table,
  .CF7_table tbody,
  .CF7_table tr,
  .CF7_table th,
  .CF7_table td{
    display:block;
    width:100%;
  }

  .CF7_table tr{
    padding:18px 0;
  }

  .CF7_table th{
    padding:0 0 8px;
    width:100%;
    font-size:14px;
    white-space:normal;
  }

  .CF7_table td{
    padding:0;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="url"],
  .wpcf7 input[type="number"],
  .wpcf7 select,
  .wpcf7 textarea{
    font-size:16px;
  }

  .wpcf7 input[type="submit"]{
    width:100%;
    min-width:0;
    height:58px;
  }
}