/* ==============================================
   共通フォームスタイル form.css
   PiaContactプラグイン 全フォーム共通
   ============================================== */

/* PC: フォームラッパーを80%幅に制限 */
@media only screen and (min-width:641px) {
  .ec-pageHeader {
    width: 82%;
    margin: 0 auto;
  }
  .pia-form-wrap {
    width: 80%;
    margin: 0 auto;
  }
}
/* -----------------------------------
   pia-form-table : フォームテーブル
----------------------------------- */
#main_middle .ec-borderedDefs{
  border-top: none!important;
}
#main_middle .ec-borderedDefs p{
  margin-bottom: 20px;
  line-height: 1.6;
}
.ec-pageHeader h1{
  color: #525263;
  font-size: 22px;
  position: relative;
  padding: 1rem 0rem;
  border-bottom: 3px solid #CCCCCC!important;
  margin: 0 0 50px 0;
  margin-bottom: 30px;
}
.ec-pageHeader h1::before {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 20%;
  height: 3px;
  content: "";
  background: #0f43c9;
}
.ec-off1Grid .ec-off1Grid__cell{
  margin: 0 auto!important;
  width: 80% !important;
}
.ec-off1Grid .ec-off1Grid__cell h2{
  text-align: center;
}
p.ec-registCompleteRole__description{
  margin-bottom: 30px;
  text-align: center;
}
.ec-off4Grid__cell .ec-blockBtn--action{
  color: #fff;
  background-color: #0000ff;
  border-color: #0000ff;
  border-radius: 10px;
  margin-bottom: 20px;
}
.ec-off4Grid__cell .ec-blockBtn--action:hover {
  color: #fff;
  background-color: #0060ff;
  border-color: #0060ff;
}
form .ec-off4Grid{
  gap: 20px;
}
.ec-off4Grid__cell .ec-blockBtn--cancel{
  border-radius: 10px;
}

.pia-form-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.pia-form-table th {
  background-color: #f8f9fa;
  padding: 1rem;
  text-align: left;
  border: 1px solid #ddd;
  width: 180px;
  vertical-align: top;
  font-weight: normal;
}
.pia-form-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  vertical-align: top;
}

/* SP: th/td を縦並びに */
@media only screen and (max-width:640px) {
  .pia-form-table th,
  .pia-form-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #ddd;
  }
  .pia-form-table th {
    padding: 8px 10px;
  }
  .pia-form-table td {
    padding: 10px;
  }
}

/* -----------------------------------
   必須ラベル
----------------------------------- */
.pia-required {
  color: #e74c3c;
  font-size: 0.85em;
  margin-left: 4px;
}

/* -----------------------------------
   注意書き・補足テキスト
----------------------------------- */
.pia-note {
  color: #e74c3c;
  font-size: 0.85em;
  margin-top: 4px;
}
.pia-attention {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0 20px;
  background-color: #fff8f8;
}
.pia-attention p {
  margin: 0 0 4px;
  font-weight: bold;
  color: #c0392b;
}

/* -----------------------------------
   フォーム入力フィールド幅調整
----------------------------------- */
.pia-form-table .ec-input input,
.pia-form-table .ec-input textarea,
.pia-form-table .ec-input select {
  width: 100%;
  box-sizing: border-box;
}
.pia-form-table .ec-telInput input {
  width: 100%;
  box-sizing: border-box;
}
.pia-form-table .ec-halfInput {
  display: flex;
  gap: 8px;
}
.pia-form-table .ec-halfInput input {
  flex: 1;
  min-width: 0;
}

/* SP: halfInputを縦並びに */
@media only screen and (max-width:640px) {
  .pia-form-table .ec-halfInput {
    flex-direction: column;
    gap: 4px;
  }
}

/* -----------------------------------
   reCAPTCHA ウィジェット 中央寄せ
----------------------------------- */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
