@charset "UTF-8";

.contact__content {
  width: min(1200px, 98%);
  margin-inline: auto;
}
.contact__box {
  padding-block-start: clamp(2rem, 0.72rem + 5.45vw, 4.8125rem);
  padding-block-end: clamp(2rem, 0.64rem + 5.82vw, 5rem);
  padding-inline: clamp(1.5rem, 0.48rem + 4.36vw, 3.75rem);
  background-color: hsl(0, 0%, 100%);
  border-radius: 20px;
}
.contact__form {
  width: min(840px, 98%);
  margin-inline: auto;
}
.contact__input-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 0.375rem;
}
.contact__input-group > * {
  flex-basis: 22%;
}
@media screen and (max-width: 768px) {
  .contact__input-group > * {
    flex-basis: auto;
  }
}
.contact__input-group > *.fb30 {
  flex-basis: 30%;
}
@media screen and (max-width: 768px) {
  .contact__input-group > *.fb30 {
    flex-basis: auto;
  }
}
.contact__input-group > *.fb40 {
  flex-basis: 40%;
}
@media screen and (max-width: 768px) {
  .contact__input-group > *.fb40 {
    flex-basis: auto;
  }
}
.contact__input-group > *.fb100 {
  flex-basis: 100%;
}
.contact__input-group.fb100_3 .mwform-checkbox-field:nth-child(3) {
    flex-basis: 35%;
}
.contact__input-group.mb60 {
  margin-block-end: 2rem;
}
.contact__input-group.nini {
  position: relative;
}
.contact__input-group.nini::before {
  content: "任意";
  background-color: #c8c8c8;
  color: #fff;
  padding: 0 0.3rem;
  font-size: 12px;
  font-style: normal;
  max-height: 24px;
  line-height: 1.4;
  width: 38px;
  position: absolute;
  top: 0;
  left: -58px;
}
@media screen and (max-width: 599px) {
  .contact__input-group.nini::before {
    left: auto;
    right: 0;
    top: -20px;
  }
}
.contact__item {
  display: grid;
  grid-template-columns: 228px auto;
  -moz-column-gap: 20px;
       column-gap: 20px;
  align-items: center;
  border-top: 1px solid #643c1e;
  padding: 29px 0;
}
.contact__item:last-of-type {
  border-top: 0px solid #643c1e;
}
.contact__item.bt-no {
  border-top: 0px solid #643c1e;
}
.contact__item.va-m {
  align-items: flex-start;
}
.contact__item.w100 {
  grid-template-columns: 1fr;
}
.contact__item.w100 > * {
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.contact__item .green {
  margin-block-start: 1rem;
  padding-block-start: 1rem;
  border-top: 1px dashed #c8c8c8;
}
.contact__item .green > p {
  color: hsl(154, 68%, 42%);
  margin-block-end: 0.25rem;
}
.contact__item .blue {
  margin-block-start: 1rem;
  padding-block-start: 1rem;
  border-top: 1px dashed #c8c8c8;
}
.contact__item .blue > p {
  color: hsl(198, 75%, 52%);
  margin-block-end: 0.25rem;
}
.contact__label {
  font-size: 16px;
  display: grid;
  grid-template-columns: auto 38px;
  align-items: center;
  line-height: 1.2;
}
.contact__label em {
  background-color: red;
  color: #fff;
  padding: 0 0.3rem;
  font-size: 12px;
  font-style: normal;
  max-height: 24px;
  line-height: 1.4;
}
.contact .policy__box {
  padding-block: 1.25rem;
  padding-inline: 1.5rem;
  border: 1px solid #643c1e;
  height: 152px;
  overflow-y: scroll;
  font-weight: 100;
}
.contact .policy__box > p {
  opacity: 0.9;
}
.mwform-checkbox-field label,
.mwform-radio-field label {
    font-weight: 500;
    margin-bottom: 0;
}
.contact__input-group.input_person .mwform-radio-field:nth-child(6) {
    flex-basis: 30%;
}
.mw_wp_form .horizontal-item + .horizontal-item {
    margin-left: 0;
}
@media screen and (max-width: 599px) {
  .contact__item {
    display: block;
    padding: 29px 0;
  }
  .contact__label {
    margin-bottom: 16px;
  }
}
.contact input[type=text] {
  font-size: 1rem;
  padding: 1.375rem 0.625rem;
  padding: 0.5rem 0.5rem;
  border: 1px solid #643c1e;
  line-height: 1;
  max-width: 580px;
  box-sizing: border-box;
  width: 100%;
}
.contact input[type="number"]
 {
  font-size: 1rem;
  padding: 1.375rem 0.625rem;
  padding: 0.5rem 0.5rem;
  border: 1px solid #643c1e;
  line-height: 1;
  max-width: 113px;
  box-sizing: border-box;
  width: 100%;
}
.contact #tel_number {
    flex-basis: 100%;
}
.mw_wp_form .error {
    flex-basis: 100%;
}
.mw_wp_form .error:before,
.mw_wp_form .error:after {
    display: none;
}
.mw_wp_form_confirm.mw_wp_form_preview .custom-select span {
    display: none;
}
.mw_wp_form_confirm.mw_wp_form_preview .douiWrap {
    display: none;
}
.contact__input-group #mailaddress {
    flex-basis: 100%;
}
.thanksMessage {
    text-align: center;
    font-size: 1.25rem;
}
@media screen and (max-width: 960px) {
  .contact input[type=text] {
    padding: 0.25rem 0.625rem;
    max-width: none;
    font-size: 0.875rem;
  }
}
/* ------------------------------- チェックボックス -------------------------------*/
.contact input[type=checkbox] {
  display: none;
}

.custom-checkbox,
.mwform-checkbox-field-text
 {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.custom-checkbox span,
.mwform-checkbox-field-text
 {
  position: relative;
  padding-left: 30px;
  line-height: 20px;
}

.custom-checkbox span::before,
.mwform-checkbox-field-text::before
 {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid #643c1e;
  background-color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-checkbox span::after,
.mwform-checkbox-field-text::after {
  content: "";
  position: absolute;
  top: 43%;
  left: 6px;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 12px;
  border: solid #643c1e;
  border-width: 0 1px 1px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-checkbox input[type=checkbox]:checked + span::after,
.mwform-checkbox-field input[type=checkbox]:checked + span::after
 {
  opacity: 1;
}
.douiWrap span.mwform-checkbox-field::before,
.douiWrap span.mwform-checkbox-field::after,
.custom-checkbox .bfHidden::before,
.custom-checkbox .bfHidden::after{
  display: none;
}

/* ------------------------------- ラジオボタン -------------------------------*/
.custom-radio input[type=radio] {
  display: none;
}

.custom-radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.custom-radio span,
.mwform-radio-field-text
 {
  position: relative;
  padding-left: 30px;
  line-height: 20px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.custom-radio span::before,
.mwform-radio-field-text::before
 {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid #643c1e;
  border-radius: 50%;
  background-color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-radio span::after,
.mwform-radio-field-text::after
 {
  content: "";
  position: absolute;
  top: 50%;
  left: 7.5px;
  transform: translateY(-50%) scale(0);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #643c1e;
  transition: transform 0.2s ease;
}

.custom-radio input[type=radio]:checked + span::after,
.mwform-radio-field input[type=radio]:checked + span::after
 {
  transform: translateY(-50%) scale(1);
}

/* ------------------------------- セレクト -------------------------------*/
.custom-select {
  position: relative;
}

.custom-select select {
  width: 113px;
  padding: 5px;
  border: 1px solid #643c1e;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  text-align: center;
}

.custom-select::after {
  content: "";
  position: absolute;
  left: 85px;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #643c1e;
  height: 12.9903810568px;
  width: 15px;
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
          clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
  display: none;
}

/* ------------------------------- ボタン -------------------------------*/
.contact__item input[type=submit],
.contact__item button[type=submit],
.contact__item button[type=button] {
  color: #fff;
  background: #643c1e;
  width: 250px;
  height: 54px;
  border-radius: 44px;
  font-size: 1rem;
  text-align: center;
  display: block;
  margin: 1rem auto 0;
  padding: 0;
}

@media screen and (max-width: 768px) {
  .contact__item button[type=submit],
  .contact__item button[type=button] {
    height: 40px;
    border-radius: 20px;
  }
}
.contact textarea {
  display: block;
  padding: 1.375rem 0.625rem;
  border: 1px solid #643c1e;
  max-width: 580px;
  box-sizing: border-box;
  width: 100%;
  height: 150px;
}

@media screen and (max-width: 960px) {
  .contact textarea {
    padding: 4px 10px; /* 0.25rem → 4px, 0.625rem → 10px */
    max-width: none;
    font-size: 14px; /* 0.875rem → 14px */
  }
}


.custom-select select {
    appearance: auto;
}

/* 郵便番号  */
span.p-country-name {
    display: none;
}
.contact input[type=text].p-postal-code {
    width: 8em;
    margin-bottom: 1em;
    vertical-align: baseline;
}
