/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* =========================
   CF7 - Section09 style
   ========================= */

/* 全体 */
.cf7-consult{
  max-width: 980px;
  margin: 0 auto;
  background: transparent; /* 白背景はページ側に任せる */
  color: #1a1a1a;
}

/* タイトル */
.cf7-title{
  text-align: center;
  margin-bottom: 34px;
  font-weight: 800;
  letter-spacing: .02em;
}
.cf7-title .jp{
  font-size: 34px;
  line-height: 1.4;
  color: #1f66a6;
}

/* 1行：ラベル｜必須｜入力 */
.cf7-row{
  display: grid;
  grid-template-columns: 220px 70px 1fr;
  gap: 18px;
  align-items: center;
  margin: 26px 0;
}

/* ラベル */
.cf7-label .jp{
  font-size: 15px;
  font-weight: 700;
  color: #333;
}
.cf7-label .en{
  font-size: 12px;
  margin-top: 4px;
  color: #777;
}

/* バッジ */
.badge{
  display: inline-block;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 4px;
  line-height: 1;
}
.badge.required{ background:#8b0f0f; color:#fff; }
.badge.optional{ background:#666; color:#fff; }

/* 入力（Astraに負けないように強め指定） */
.cf7-consult input.cf7-input,
.cf7-consult textarea.cf7-textarea{
  width: 100% !important;
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #cfcfcf !important;
  border-radius: 3px !important;
  padding: 14px 14px !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

/* フォーカス時 */
.cf7-consult input.cf7-input:focus,
.cf7-consult textarea.cf7-textarea:focus{
  border-color: #1f66a6 !important;
  outline: none !important;
}

/* textarea高さ */
.cf7-textarea{
  min-height: 230px !important;
  resize: vertical;
}

/* textarea行は上寄せ */
.cf7-row.textarea{
  align-items: start;
}
.cf7-row.textarea .cf7-badge{
  padding-top: 6px;
}

/* 送信ボタン */
.cf7-submit{
  text-align: center;
  margin-top: 34px;
}
.cf7-consult input.cf7-button{
  background: #1f66a6 !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 54px !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  cursor: pointer;
}
.cf7-consult input.cf7-button:hover{
  opacity: .92;
}
.cf7-submit .btn-sub{
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

/* CF7が自動で入れるp/ br対策 */
.cf7-consult p{ margin: 0; }
.cf7-consult br{ display: none; }

/* スマホ：縦積み */
@media (max-width: 768px){
  .cf7-title .jp{ font-size: 24px; }
  .cf7-row{
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px 0;
  }
}

/* 相談方法（radio）を横並びにする */
.cf7-consult .wpcf7-form-control.wpcf7-radio{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

/* 1つ1つの選択肢（label）も横並びに */
.cf7-consult .wpcf7-form-control.wpcf7-radio .wpcf7-list-item{
  margin: 0; /* CF7デフォルト余白を消す */
}

.cf7-consult .wpcf7-form-control.wpcf7-radio .wpcf7-list-item label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* 「事務所来所」が縦に割れない */
}

/* ラジオの丸と文字の位置調整 */
.cf7-consult .wpcf7-form-control.wpcf7-radio input[type="radio"]{
  margin: 0;
}

/* 入力がスマホで横にはみ出す対策 */
.cf7-consult *,
.cf7-consult *::before,
.cf7-consult *::after{
  box-sizing: border-box;
}

/* CF7のラッパーも幅100%に固定 */
.cf7-consult .wpcf7-form-control-wrap{
  display: block;
  width: 100%;
  max-width: 100%;
}

/* input/textarea/select も「確実に」収める */
.cf7-consult input,
.cf7-consult textarea,
.cf7-consult select{
  max-width: 100% !important;
}

.elementor-450 .elementor-element.elementor-element-7ea5a1b .wpcf7-form-control:not(.wpcf7-submit) {
    margin-top: 5px;
}

span.wpcf7-spinner {
    display: none;
}

/* スマホ固定フッター（電話・メール） */
@media (max-width: 768px){
  .mobile-fixed-cta{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
  }

  /* ボタン2つを横並び */
  .mobile-fixed-cta .elementor-container,
  .mobile-fixed-cta .e-con-inner{
    display: flex !important;
    gap: 10px;
  }

  /* 中のボタンを均等幅に */
  .mobile-fixed-cta .elementor-button{
    width: 100%;
    justify-content: center;
  }

  /* 固定バーの分だけページ下に余白を作る（重要） */
  body{
    padding-bottom: 50px;
  }
}