@charset "UTF-8";

.p-contact__body {
  margin-top: clamp(80px, 9.5168374817vw, 130px);
  margin-bottom: clamp(120px, 13.9092240117vw, 190px);
}

.contact {
  padding-block: 60px;
  padding-inline: 20px;
  color: #5A5A5A;
  background: #ffffff;
  border-radius: 10px;
  -webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
          box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
  max-width: 1078px;
  margin-inline: auto;
}

@media screen and (min-width: 768px) {
  .contact {
    padding-inline: clamp(40px, 8.345534407vw, 114px);
  }
}
.contact__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 40px;
}

.contact__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 17px;
}
.contact__item + .contact__item {
  margin-top: 37px;
}

.col-md-4,
.col-md-8 {
  padding: 0;
  max-width: 100%;
  -webkit-box-flex: unset;
      -ms-flex: unset;
          flex: unset;
}

.row {
  margin: 0;
}

.contact__item label {
  font-size: 14px;
  line-height: 1.3571428571;
}

.contact__item > .formTh > .requiredText {
  background: #d80e0e;
  width: 32px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  padding: 3px 2px;
  margin-left: 10px;
}

.contact__item > .formTh > .anyText {
  background: #5c5c5c;
  width: 32px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  padding: 3px 2px;
  margin-left: 10px;
}

.contact__item > .formTd > textarea {
  height: 180px;
}

:focus-visible {
  outline: #284038 auto 1px;
}

.privacy-policy {
  margin-top: 50px;
  height: 155px;
  padding: 30px 20px;
  border-radius: 3px;
  border: 1px solid #d3d3d3;
  background: #f3f4f5;
  overflow-y: scroll;
  width: 100%;
  margin-inline: auto;
}

@media screen and (min-width: 768px) {
  .privacy-policy {
    padding: 8px 43px 8px 17px;
  }
}
.privacy-policy__text.privacy-policy__text--first {
  margin: 0;
}

.privacy-policy__item {
  max-width: 828px;
}

.privacy-policy__item + .privacy-policy__item {
  margin-top: 52px;
}

.privacy-policy__title {
  font-size: 18px;
  letter-spacing: 0.006em;
  color: #464646;
  padding: 0 0 15px 0;
  border-bottom: 1.5px solid #d0d0d0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 28px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.privacy-policy__title::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #1B427A;
}

.privacy-policy__text {
  margin-top: 20px;
  font-size: 14px;
  line-height: 2.2;
  color: #646464;
}

.privacy-policy__text-bottom {
  margin-top: -16px;
  font-size: 14px;
  line-height: 2.0571428571;
}

.privacy-policy__text-link {
  text-decoration: underline;
}

.privacy-policy__text-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.privacy-policy__text-link:hover {
  opacity: 0.6;
  text-decoration: underline;
}

.privacy-policy__check {
  margin-top: 20px;
}

.formBtn {
  margin: 80px auto 0;
  padding: 5px 0;
  border-radius: 28px;
  border: 1px solid #1B427A;
  width: 200px;
  background: #1B427A;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 2.8125;
  text-align: center;
}

.formBtn:hover {
  background: transparent;
  color: #1B427A;
}

.privChek {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.privacyLabel {
  margin-bottom: 1px;
  font-size: 14px;
}

.privacyformError {
  margin-top: -36.5px !important;
}

.contact__item > .formTd > input,
.contact__item > .formTd > textarea,
.contact__item > .formTd > select {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font: inherit;
  color: inherit;
  vertical-align: top;
  width: 100%;
  border-radius: 3px;
  border: 1px solid #d3d3d3;
  background: #f3f4f5;
  padding: 15px 14px 15px;
}

.contact__item > .formTd > select {
  width: min(320px, 100%);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("../images/arrow-down.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 20px;
  background-size: 12px;
}

.contact__item > .formTd > input::-webkit-input-placeholder, .contact__item > .formTd > textarea::-webkit-input-placeholder, .contact__item > .formTd > div > select::-webkit-input-placeholder {
  color: #5D5D5D;
}

.contact__item > .formTd > input::-moz-placeholder, .contact__item > .formTd > textarea::-moz-placeholder, .contact__item > .formTd > div > select::-moz-placeholder {
  color: #5D5D5D;
}

.contact__item > .formTd > input:-ms-input-placeholder, .contact__item > .formTd > textarea:-ms-input-placeholder, .contact__item > .formTd > div > select:-ms-input-placeholder {
  color: #5D5D5D;
}

.contact__item > .formTd > input::-ms-input-placeholder, .contact__item > .formTd > textarea::-ms-input-placeholder, .contact__item > .formTd > div > select::-ms-input-placeholder {
  color: #5D5D5D;
}

.contact__item > .formTd > input::placeholder,
.contact__item > .formTd > textarea::placeholder,
.contact__item > .formTd > div > select::placeholder {
  color: #5D5D5D;
}

input[type=radio] {
  width: 1px;
  height: 1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

.d-inline:nth-of-type(n + 2) {
  padding-left: 20px;
}

/* ラベルのデザイン */
.checkbox-label {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  padding-left: 30px; /* ラジオボタン用のスペースを確保 */
}

/* カスタムラジオボタンの作成 */
.checkbox-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #24354C;
  background-color: #fff;
  -webkit-transition: background-color 0.2s, border-color 0.2s;
  transition: background-color 0.2s, border-color 0.2s;
}

/* 選択時のデザイン */
input[type=radio]:checked + .checkbox-label::before {
  background-color: #1B427A;
  border-color: #1B427A;
  -webkit-box-shadow: inset 0 0 0 4px #fff;
          box-shadow: inset 0 0 0 4px #fff;
}

.p-contact-after__body {
  padding-top: 50px;
  padding-bottom: 50px;
}
@media screen and (min-width:768px) {
  .p-contact-after__body {
    padding-top: 150px;
    padding-bottom: 150px;
  }
}

.p-contact-after__text {
  color: #24354C;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 1px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-contact-after__text {
    font-size: 18px;
  }
}