@charset "UTF-8";
/* --------------------------------
 * お問い合わせフォーム全体のスタイル (モバイルファースト)
 * -------------------------------- */
.common_form {
  width: 100%;
  padding: 40px 20px; /* 上下40px, 左右20px */
  margin: 0;
  background: #f9f9f9;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* フォームのテーブルレイアウトをリセット */
  /* 入力フィールドのスタイル
   * -------------------------------- */
  /* チェックボックスのスタイル
   * -------------------------------- */
  /* 送信ボタンのスタイル
   * -------------------------------- */
  /* --------------------------------
   * レスポンシブ対応 (PC表示)
   * -------------------------------- */
}
.common_form table {
  width: 100%;
  border-collapse: collapse;
  border: none;
}
.common_form th,
.common_form td {
  display: block; /* スマートフォン表示のためにブロック要素に変更 */
  width: 100%;
  text-align: left;
  border: none;
  padding: 0;
}
.common_form tr {
  margin-bottom: 1.5em;
  display: block;
  /* ラベル（項目名）のスタイル */
}
.common_form tr th {
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #333;
  font-size: 16px;
  background-color: unset;
}
.common_form tr.require th {
  position: relative;
  padding-right: 2.6em;
}
.common_form tr.require th::after {
  content: "必須";
  display: inline-block;
  background-color: #dc3545;
  color: white;
  font-size: 0.7em;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  white-space: nowrap;
}
.common_form input[type=text],
.common_form input[type=email],
.common_form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box; /* paddingを含めて幅を100%に */
  -webkit-transition: border-color 0.3s, -webkit-box-shadow 0.3s;
  transition: border-color 0.3s, -webkit-box-shadow 0.3s;
  transition: border-color 0.3s, box-shadow 0.3s;
  transition: border-color 0.3s, box-shadow 0.3s, -webkit-box-shadow 0.3s;
  /* 入力フィールドフォーカス時のスタイル */
}
.common_form input[type=text]:focus,
.common_form input[type=email]:focus,
.common_form textarea:focus {
  outline: none;
  border-color: #007bff;
  -webkit-box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
          box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.common_form textarea {
  min-height: 150px;
  resize: vertical;
}
.common_form td label {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex; /* チェックボックスとテキストを横並びにする */
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 0.8em;
  cursor: pointer;
  font-size: 16px;
}
.common_form input[type=checkbox] {
  margin-right: 0.5em;
  /* ブラウザ標準のチェックボックスを少し大きく見せる */
  width: 1.2em;
  height: 1.2em;
  background-color: unset;
}
.common_form input[type=submit] {
  display: inline-block; /* 親要素のtext-align:centerを有効にする */
  padding: 15px 40px; /* ボタンの見た目を調整 */
  max-width: 300px; /* ボタンの最大幅 */
  background-color: #007bff;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: background-color 0.3s, -webkit-transform 0.2s;
  transition: background-color 0.3s, -webkit-transform 0.2s;
  transition: background-color 0.3s, transform 0.2s;
  transition: background-color 0.3s, transform 0.2s, -webkit-transform 0.2s;
  text-align: center;
}
.common_form input[type=submit]:hover {
  background-color: #0056b3;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}
@media (min-width: 768px) {
  .common_form {
    /* PC表示ではフォームに余白と角丸を適用 */
    /* PCではラベルと入力欄を2カラム表示に */
    /* チェックボックスの項目を2列で表示 */
    /* 電話番号の入力欄を3列で表示 */
  }
  .common_form {
    max-width: 800px;
    margin: 40px auto;
    padding: 2em;
    border-radius: 8px;
    -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }
  .common_form tr {
    display: grid;
    grid-template-columns: 200px 1fr; /* 左:ラベル, 右:入力欄 */
    gap: 1em;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .common_form tr th,
  .common_form tr td {
    width: auto; /* display:blockを解除 */
  }
  .common_form tr th {
    text-align: right;
    padding-right: 1em;
    margin-bottom: 0;
  }
  .common_form td[colspan="1"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5em 1em;
  }
  .common_form td:has(input[name^="data[column_3]"]) {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr; /* input - input - input */
    gap: 0.5em; /* Adjust gap as needed */
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .common_form td:has(input[name^="data[column_3]"]) input[type=text] {
    width: 100%; /* Ensure inputs take full width of their grid cell */
    min-width: 0; /* Allow inputs to shrink */
  }
}

/* 案内メッセージを非表示に */
.soy_inquiry_message {
  display: none;
}

/* 4番目のtr > td の背景色をリセット */
#inquiry_form > tbody > tr:nth-child(4) > td {
  background-color: unset;
}

.form_submit_center tr {
  display: block;
  text-align: center;
}
.form_submit_center tr td {
  display: inline-block;
}

#soy_inquiry_message_complete tr {
  display: block;
}

#soy_inquiry_message_confirm tr {
  display: block;
}/*# sourceMappingURL=form.css.map */