/*==================================================
  見出し
==================================================*/
.inq_h_jp {
  font-size: 1.3em;
  font-weight: bold;
  color: dodgerblue;
  margin: 30px 8px 0;
}

.inq_h_en {
  color: dodgerblue;
  font-size: 1.1em;
  margin: 5px 8px 0;
  margin-bottom: 1em;
  position: relative;
  padding-bottom: 0.5em;
  border-bottom: 4px solid lightskyblue;
  font-family: "poppinsmedium";
}

/* 見出し下アクセント */
.inq_h_en::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  z-index: 2;
  content: "";
  width: 20%;
  height: 4px;
  background-color: dodgerblue;
}

/* ページ説明 */
.top_p {
  text-align: center;
  font-size: 1.05em;
  margin: 30px auto;
}

/* 注意文章 */
.alert_message {
  color: rgb(229, 115, 115);
  text-align: center;
  margin: 60px auto 30px;
  font-size: 20px;
  font-weight: bold;
}

/*==================================================
  フォーム外枠
==================================================*/
.out_border {
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5rem;
}

/*==================================================
  フォーム行
==================================================*/
.row_color {
  padding: 25px 30px;
  align-items: center;
}
.row_color > p {
  margin-bottom: 0;
}

/* 最終行 */
.row_color:last-of-type {
  border-bottom: none;
}

/* 左ラベル */
.row_color .col-md-4 {
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 入力側 */
.row_color .col-md-8 {
  padding-left: 15px;
  padding-right: 15px;
}

@media screen and (max-width: 767px) {
  .row_color .col-md-8 {
    margin-top: 15px;
  }
}

/* ラベル */
.left_label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.5;
}

/* Chrome 自動入力の青背景対策 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #333 !important;
  transition: background-color 9999s ease-out;
}
/*==================================================
  入力エラー文章
==================================================*/
.val_alert {
  color: red;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}
/* 入力欄共通 */
.right_form {
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
}

/* PC時のみ幅調整 */
@media (min-width: 768px) {
  .right_form {
    max-width: 700px;
  }
}

/*==================================================
  placeholder
==================================================*/
.right_form::placeholder {
  color: #b0bec5;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

/* 入力開始時 */
.right_form:focus::placeholder {
  opacity: 0.3;
  transform: translateX(10px);
}

/*==================================================
  select
==================================================*/
.form-select {
  color: #333;
}

/* 初期値 */
.form-select option[value=""] {
  color: #999;
}

/* 選択肢 */
.form-select option {
  color: #333;
}

/*==================================================
  textarea
==================================================*/
textarea.right_form {
  resize: vertical;
  min-height: 150px;
  padding-bottom: 28px;
}
.textarea-wrap {
  position: relative;
  width: 100%;
  max-width: 700px; /* textareaと同じ幅 */
  margin: 0 auto;
}
.textarea-wrap .right_form {
  width: 100%;
  max-width: none;
}
.detail-counter {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 13px;
  color: #666;
  pointer-events: none;
}
/*==================================================
  必須・任意バッジ
==================================================*/
/*
  共通バッジ
*/
.custom-badge {
  display: inline-block;
  margin: 0 5px;
  padding: 2px 6px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
}

.badge-required {
  background-color: #e57373;
}

.badge-optional {
  background-color: #4fc3f7;
}

/*
  旧バッジ互換
*/
.req {
  margin-left: 5px;
  margin-right: 5px;
  padding: 2px 4px;
  color: white;
  background: rgb(229, 115, 115);
  border-radius: 3px;
}
.any {
  margin-left: 5px;
  margin-right: 5px;
  padding: 2px 4px;
  color: white;
  background: rgb(79, 195, 247);
  border-radius: 3px;
}
.req.badge,
.any.badge {
  font-size: 0.8rem;
  padding: 2px 6px !important;
  line-height: 1.2;
  border-radius: 3px;
}
/*==================================================
  同意エリア
==================================================*/
.doui_title {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  padding-top: 10px;
}

.doui_content {
  width: 75%;
  margin: 20px auto 0;
  height: 280px;
  overflow-y: scroll;
  padding: 15px;
}

.doui_content h4 {
  font-size: 16px;
  font-weight: bold;
  margin-top: 25px;
}

.doui_p {
  margin: 50px auto;
  text-align: center;
}

/*==================================================
  送信ボタン
==================================================*/
.submit_button {
  display: block;
  min-width: 120px;
  padding: 10px 20px;
  margin: 10px auto;
  background-color: dodgerblue;
  color: white;
  border: none;
  border-radius: 4px;
  transition: all 0.5s ease;
  white-space: nowrap;
}

.submit_button:hover {
  background-color: rgb(227, 242, 253);
  text-decoration: none;
}

/* 送信下余白 */
.submit_space {
  margin: 30px auto 60px;
  height: 50px;
}

/*==================================================
  問い合わせ返信方法
==================================================*/
/*
  電話・メール・FAXなど
*/
.rep_box {
  border-bottom: 1px solid #e6eef5 !important;
}

/*==================================================
  返信方法 必須・任意
==================================================*/
#tell_req,
#fax_req {
  margin-left: 5px;
  margin-right: 5px;
  padding: 2px 4px;
  color: white;
  background: rgb(229, 115, 115);
  border-radius: 3px;
}

#tell_any,
#fax_any {
  margin-left: 5px;
  margin-right: 5px;
  padding: 2px 4px;
  color: white;
  background: rgb(79, 195, 247);
  border-radius: 3px;
}

/*==================================================
  ラジオボタン
==================================================*/
.radio-group-container {
  padding: 0;
}

/*
  返信方法入力部分
*/
#rep_name {
  margin: 10px auto;
  width: 80%;
}

#rep_name label {
  margin-right: 25px;
  font-weight: normal;
}

#rep_name input[type="radio"] {
  vertical-align: middle;
  margin-top: 0;
}

/* 丸と文字の距離 */

.custom-radio input[type="radio"] {
  margin-right: 6px;
  margin-top: 2px;
}

/*==================================================
  個人情報保護方針
==================================================*/
.prv_box {
  margin-top: 5vh;
  text-align: center;
}

.privacy,
.telldata,
.kaiji {
  margin-top: 3vh;
  font-weight: bold;
}
/*==================================================
  フォーム入力画面 シマシマ背景
==================================================*/
/*
  入力フォームの行背景

  row_color単位で交互表示
  お問い合わせ・採用フォーム共通
*/
.out_border > .row_color:nth-of-type(odd) {
  background-color: rgb(227, 242, 253);
}

.out_border > .row_color:nth-of-type(even) {
  background-color: #fff;
}

/*==================================================
  入力フォーム シマシマ背景
  JS(updateStripe)制御用
==================================================*/
.row-blue {
  background-color: rgb(227, 242, 253) !important;
}

.row-white {
  background-color: #fff !important;
}

/*==================================================
  採用フォーム 通常画面
==================================================*/
/*
  採用フォーム専用背景
*/
.rec_inq {
  background-color: rgb(227, 242, 253) !important;
}

.rec_sub {
  background-color: white !important;
}

/*
  採用フォーム行背景
  確認画面とは別管理
*/
.career_form > .row_color:nth-child(odd) {
  background-color: rgb(227, 242, 253);
}

.career_form > .row_color:nth-child(even) {
  background-color: #fff;
}

/*==================================================
  問い合わせ確認画面 共通部品
==================================================*/

.right_text {
  margin: 30px auto;
}

/*==================================================
  確認画面 共通
==================================================*/

/*
  確認画面テーブル背景リセット
  入力画面側の背景指定が
  確認画面へ影響しないようにする
*/
#contactConfirmArea,
#careerConfirmArea {
  margin-top: 50px;
}
#contactConfirmArea table tr {
  background: transparent;
}

/*==================================================
  確認画面 共通サイズ
==================================================*/
#contactConfirmArea,
#careerConfirmArea {
  font-size: 16px;
}

#contactConfirmArea h2,
#careerConfirmArea h2 {
  font-size: 26px;
}

/*==================================================
  確認画面 テーブル共通
==================================================*/

#contactConfirmArea table,
#careerConfirmArea table {
  width: 100%;
  table-layout: fixed;
}

#contactConfirmArea table th,
#careerConfirmArea table th {
  width: 35%;
  text-align: center;
  vertical-align: middle;
  background: #f5f5f5;

  white-space: nowrap;
  word-break: keep-all;
}

#contactConfirmArea table td,
#careerConfirmArea table td {
  width: 65%;
  vertical-align: middle;
  padding: 12px;

  white-space: normal;
}

/* お問い合わせ内容だけ改行維持 */
#careerConfirmArea #c_detail,
#contactConfirmArea #c_detail {
  white-space: pre-wrap !important;
}

/* スマホ */
@media (max-width: 576px) {
  #contactConfirmArea table {
    font-size: 15px;
  }

  #contactConfirmArea table th {
    width: 35%;
  }

  #contactConfirmArea table td {
    width: 65%;
  }
}
/*==================================================
  確認画面 枠
==================================================*/

#contactConfirmArea .out_border,
#careerConfirmArea .out_border {
  padding: 20px;
}

/*==================================================
  通常問い合わせ 確認画面
==================================================*/

#contactConfirmArea table tr.row-blue td,
#contactConfirmArea table tr.row-blue th {
  background-color: rgb(227, 242, 253) !important;
}

#contactConfirmArea table tr.row-white td,
#contactConfirmArea table tr.row-white th {
  background-color: #fff !important;
}

/*==================================================
  採用フォーム 確認画面
==================================================*/

#careerConfirmArea table tr:nth-of-type(odd) th,
#careerConfirmArea table tr:nth-of-type(odd) td {
  background-color: rgb(227, 242, 253) !important;
}

#careerConfirmArea table tr:nth-of-type(even) th,
#careerConfirmArea table tr:nth-of-type(even) td {
  background-color: #fff !important;
}

/*==================================================
  確認画面 補助
==================================================*/
/*
  入力欄下説明文
*/
.input_note {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 8px auto 0;
  color: #666;
  font-size: 13px;
  text-align: left;
}

/*
  詳細文章保持
  改行を維持
*/
#c_detail {
  white-space: pre-wrap;
  word-break: break-word;
}

/*==================================================
  エラー表示
==================================================*/
/*
  入力エラー行
  シマシマ背景は維持して
  左側にエラー表示だけ追加
*/
.error_row {
  position: relative;
  box-shadow: inset 6px 0 0 #d9534f;
}

/*
  エラーアイコン
*/
.error_row::before {
  content: "!";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: #d9534f;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

/*
  入力欄だけ赤枠

*/
.error_row input,
.error_row select,
.error_row textarea {
  border: 2px solid #d9534f !important;
  background: #fff8f8;
}

/*
  バリデーション表示枠
*/
#formErrorBox {
  display: none;
  margin-bottom: 20px;
}

/*
  Bootstrap form-control対応
*/

.form-control.has-error {
  border: 2px solid rgb(229, 115, 115) !important;
  background-color: #fff8f8;
}

/*==================================================
  注意ボックス
==================================================*/
.alert_box {
  background-color: #fff5f5;
  border: 2px solid rgb(229, 115, 115);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.alert_box h4 {
  color: #e53935;
  font-weight: bold;
  margin-bottom: 10px;
}

.alert_list p {
  color: #555;
  font-size: 0.9em;
  margin: 5px 0;
}

/*==================================================
  管理画面 一覧
==================================================*/
.t_inq_tbl_body h3 {
  font-size: 1.2em;
}

/*
  一覧カード
*/
.t_inq_tbl_list {
  width: 100%;
  height: auto;
  display: table;
  margin: 5vh 0 1vh;
  background-color: aliceblue;
  padding: 1em;
  border-radius: 8px;
}

.t_inq_date,
.t_inq_title,
.t_inq_tab,
.t_inq_radio {
  display: table;
}

/*
  詳細ボタン枠
*/

.t_inq_a_box {
  display: table;
  vertical-align: middle;
}

.t_inq_a_box a {
  display: table-cell;
  vertical-align: middle;
}

/*==================================================
  DB表示テーブル
==================================================*/
.db_inquiry th,
.db_inquiry td {
  border: 1px solid #333;
  background-color: #fff;
  padding: 0.5em;
}

.t_inq_tbl {
  background-color: azure;
  padding: 5vh;
}

.db_inquiry {
  width: 95% !important;
  border-collapse: collapse;
  border-spacing: 0;
  margin: auto !important;
}

.db_inquiry th {
  width: 20%;
  text-align: center;
  background-color: aliceblue;
}

/*==================================================
  スマホ調整
==================================================*/
@media screen and (max-width: 767px) {
  /*
    送信下余白調整
  */
  .submit_space {
    height: 100px;
  }

  /*
    フォーム横並び解除
    Bootstrapのrowはflex維持
  */
  .row_color {
    display: flex;
    flex-direction: column;
  }

  /*
    返信方法中央寄せ
  */
  .rep_box {
    text-align: center;
  }
}

/*==================================================
  完了画面
==================================================*/
.comp_message {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  margin: 100px auto 50px;
}

.comp_back {
  display: block;
  width: 200px;
  text-align: center;
  margin: 0 auto;
  padding: 15px;
  background: dodgerblue;
  color: white;
  border-radius: 5px;
}

/*==================================================
  送信ボタン
==================================================*/
.submit_button {
  display: block;
  min-width: 120px;
  padding: 10px 20px;
  margin: 10px auto;
  background-color: dodgerblue;
  color: white;
  border: none;
  border-radius: 4px;
  transition: all 0.5s ease;
  white-space: nowrap;
}

.submit_button:hover {
  background-color: rgb(227, 242, 253);
  text-decoration: none;
}

/*==================================================
  送信ボタン 無効状態
==================================================*/
/*
  二重送信防止時
  JSでdisabled=trueになった際の見た目。
  グレー表示・カーソル変更で
  操作できないことを明確にする。
*/
.submit_button:disabled {
  background-color: #bdbdbd;
  color: #666;
  cursor: not-allowed;
  opacity: 5;
}

/*
  無効時はホバー効果を無効化
*/
.submit_button:disabled:hover {
  background-color: #bdbdbd;
  color: #666;
  text-decoration: none;
}

/* 送信下余白 */
.submit_space {
  margin: 30px auto 60px;
  height: 50px;
}
