@charset "utf-8";

/*==================================================
お問い合わせ
==================================================*/

.contact-box .info-driving {
  margin: 0 0;
  text-align: center;
}

.contact-box .info-driving .txt-box {
  padding: 0 0 4rem;
  display: inline-block;
  text-align: left;
}

.table-style01 {
  border-top: 0.1rem solid #cccccc;
  border-left: 0.1rem solid #cccccc;
}

.table-style01 th {
  width: 31.2rem;
  padding: 1.5rem 2.4rem;
  border-bottom: 0.1rem solid #cccccc;
  border-right: 0.1rem solid #cccccc;
  font-weight: normal;
  white-space: nowrap;
  text-align: left;
  background-color: #f0f0f0;
}

.table-style01 .txt-s {
  font-size: 1.6rem;
  line-height: 2em;
  margin: 1.2rem 0 0;
  display: block;
}

.table-style01 .txt-s.inline {
  display: inline-block;
  margin-left: 0.4rem;
}

.mw_wp_form .error {
  color: #ba0202 !important;
  font-size: 100%;
  font-weight: bold;
}

.table-style01 td {
  padding: 3rem;
  border-bottom: 0.1rem solid #cccccc;
  border-right: 0.1rem solid #cccccc;
  text-align: left;
  letter-spacing: 0;
}

.table-style01 td .mar-t {
  margin-top: 1.5em;
}

.mw_wp_form_preview td span,
.mw_wp_form_preview td p.no {
  display: none;
}

.table-style01 td p {
  margin: 0 0 0.5em;
}

.p-topForm input[type="text"].mini {
  width: 20%;
}

.p-topForm input[type="text"].short {
  width: 25%;
}

.p-topForm textarea,
.p-topForm input[type="text"],
.p-topForm input[type="email"] {
  width: 100%;
  height: 4.8rem;
  border-radius: 0;
  border: #ccc 0.1rem solid;
  background-color: #fff;
  padding: 1.2rem;
  font-size: 100%;
}

.p-topForm textarea {
  width: 100%;
  vertical-align: bottom;
  height: 11.6rem;
  border-radius: 0;
}

.p-topForm select {
  width: 100%;
  padding: 1.2rem;
  height: 4.8rem;
  overflow: hidden;
  border: #fff 0.1rem solid;
  background: url(https://www.hakko-group.co.jp/img/common/ico_arrow02.png) 97%
    center no-repeat;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  border-radius: 0;
  border: 0.1rem solid #ccc;
  font-size: 100%;
  background-color: #fff;
  color: #949494;
}

.p-topForm table .brand-check label {
  padding-left: 4rem;
}

.p-topForm table label {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 0rem;
}

/* デフォルトのチェックボックスを非表示 */
.p-topForm table input[type="checkbox"] {
  display: none;
}

/* チェックボックスのカスタムスタイル */
.p-topForm table {
  position: relative;
  padding-left: 3rem;
  cursor: pointer;
  font-size: 1.6rem;
  user-select: none;
  width: 100%;
}

/* チェックマークのスタイル */
.p-topForm table .mwform-checkbox-field-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  background-color: #fff;
  border: 0.1rem solid #ccc;
}

/* チェックされたときの背景色とアイコン */
.p-topForm table input:checked + .mwform-checkbox-field-text::before {
  background-color: #ccc;
  /* チェックされたときの色（オレンジ系） */
  border-color: #ccc;
}

/* チェックされたときの中のチェックマーク（疑似要素） */
.p-topForm table input:checked + .mwform-checkbox-field-text::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: calc(50% - 0.1rem);
  width: 1.2rem;
  height: 0.8rem;
  border: solid white;
  border-width: 0 0 0.3rem 0.3rem;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mwform-checkbox-field-text {
  padding-left: 3.2rem;
}

/* ラジオボタンのチェック時の色を変更 */
/* .p-topForm input[type="radio"] { */
/* accent-color: #FFF200;  */
/* } */

/* ラジオボタンを非表示 */
input[type="radio"] {
  display: none;
}

/* カスタムのラジオボタンデザイン */
input[type="radio"] + .mwform-radio-field-text::before {
  content: "";
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  border: 0.1rem solid #ccc;
  /* 枠の色 */
  border-radius: 50%;
  margin-right: 0.8rem;
  vertical-align: -0.2rem;
  background-color: #fff;
}

/* 選択時の色変更 */
input[type="radio"]:checked + .mwform-radio-field-text::after {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border: 0.1rem solid #ccc;
  border-radius: 50%;
  margin-right: 0.8rem;
  vertical-align: -0.2rem;
  background-color: #ccc;
  position: absolute;
  top: 1.8rem;
  left: 0.35rem;
}

.must {
  background: #ba0202;
  color: #fff;
  font-size: 1.6rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.8rem;
  height: 3.1rem;
  margin-left: 0.8rem;
}

.p-topForm h3 {
  margin-top: 8rem;
  text-align: center;
  font-size: 2.4rem;
  font-size: 2.4rem;
}

.p-topForm h3:first-child {
  margin-top: 0;
}

.p-topForm table {
  margin: 5rem 0;
  width: 100%;
}

.p-topForm .btn-submit {
  text-align: center;
}

.p-topForm .btn-submit li {
  display: inline-block;
  margin: 0 0.5rem;
}

.p-topForm input[type="submit"] {
  display: block;
  background: #121212;
  color: #fff;
  width: 44rem;
  height: 8.2rem;
  border: none;
  border-radius: 0;
  font-size: 100%;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 0;
}

/* .btn-submit li:last-child input[type="submit"] {
  background: #fff;
} */

.thanks-box {
  border-top: 0.1rem solid #fff;
  padding: 20rem 0 30rem;
}

@media screen and (max-width: 767px) {
  /*==================================================
お問い合わせ
==================================================*/
  .contact-box .info-driving .txt-box {
    padding: 0 0 2rem;
  }

  .p-topForm h3 {
    margin-top: 3rem;
    text-align: center;
    font-size: 2.8rem;
  }

  .table-style01 th {
    display: block;
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem;
    font-size: 1.4rem;
  }

  .table-style01 .txt-s {
    font-size: 1.4rem;
    font-weight: 300;
  }

  .table-style01 td {
    display: block;
    width: 100%;
    padding: 1.2rem 1.2rem 1.5rem;
  }

  .p-topForm textarea,
  .p-topForm input[type="text"],
  .p-topForm input[type="email"] {
    width: 100%;
    height: 4.5rem;
    border: #ccc 0.1rem solid;
    padding: 1.2rem;
    font-size: 1.6rem;
  }

  .p-topForm textarea {
    height: 10rem;
  }

  .p-topForm table label {
    position: relative;
    padding: 0.5rem 1.2rem 0.5rem 0rem;
  }

  .p-topForm table .mwform-checkbox-field label:after {
    margin-top: -1.2rem;
  }

  .p-topForm table .mwform-checkbox-field.checked label:before {
    margin-top: -0.7rem;
  }

  .p-topForm select {
    width: 100%;
    height: 4.5rem;
    font-size: 1.6rem;
    padding: 1rem 1.2rem;
  }

  .p-topForm table {
    margin: 2rem 0;
  }

  .p-topForm .btn-submit li {
    display: block;
    margin: 0 0 1.2rem;
  }

  .p-topForm input[type="submit"] {
    display: block;
    padding: 2rem 1.2rem;
    width: 100%;
  }

  .mwform-checkbox-field label,
  .mwform-radio-field label {
    display: block;
    padding: 0 0 0.5rem;
  }

  .mw_wp_form .horizontal-item + .horizontal-item {
    margin-left: 0 !important;
  }

  .p-topForm input[type="submit"] {
    padding: 0;
    font-size: 1.6rem;
    letter-spacing: 0rem;
  }

  .thanks-box {
    padding: 5rem 0 10rem;
  }

  .must {
    /* background: #ba0202; */
    /* color: #fff; */
    font-size: 1.4rem;
    /* display: inline-flex; */
    /* justify-content: center; */
    /* align-items: center; */
    width: 4.2rem;
    height: 3rem;
    /* margin-left: .8rem; */
  }

  .mwform-checkbox-field-text {
    font-size: 1.4rem;
  }

  .mwform-checkbox-field-text {
    padding-left: 0;
  }

  .p-topForm .mwform-checkbox-field label {
    padding-left: 3.2rem;
  }

  input[type="radio"]:checked + .mwform-radio-field-text::after {
    top: 1.2rem;
    left: 0.33rem;
  }
}

.contact-modal .contact-box {
  max-width: 100%;
  padding: 15% 0 30%;
}

.contact-modal .close {
  left: initial;
  top: 2.5%;
  right: 2.5%;
  transform: translateY(0%);
  z-index: 999;
  width: 40px;
  height: 40px;
  line-height: 40px;
}
