@charset "utf-8";

.contact {
  padding-top: 122px;
  padding-bottom: 150px;
}

@media screen and (min-width: 768px) {
  .page__inner.l-inner {
    max-width: calc(1150px + 40px * 2);
  }
}

.contact__heading {
  color: var(--sub-color);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 37px;
}

.contact__description {
  font-size: 13px;
  margin-top: 30px;
  letter-spacing: 0.08em;
  line-height: 2.2;
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .contact__description {
    font-size: 15px;
    margin-bottom: 99px;
  }
}

.contact__container {
  padding: 83px 20px 80px;
  background: var(--white-color);
  border-radius: 20px;
}

@media screen and (min-width: 768px) {
  .contact__container {
    padding: 83px 40px 80px;
  }
}

@media screen and (min-width: 1100px) {
  .contact__container {
    padding: 128px 125px 120px;
  }
}

.contact__wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.contact__item-row {
  display: flex;
  align-items: center;
  gap: 27px;
}

.contact__item-row select {
  width: 49px;
  height: 50px;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  padding: 14px 12px;
  font-size: 14px;
  -moz-appearance: none;
  appearance: none;
  -webkit-appearance: none;
}

.contact__item-row .selectArea {
  display: flex;
  gap: 0;
  align-items: center;
}
@media screen and (min-width: 768px) {
  .contact__item-row .selectArea {
    gap: 10px;
  }
}

.contact__item-row .selectArea label {
  display: inline-block;
  margin-bottom: 0;
  margin-left: 4px;
  margin-top: 15px;
}

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

.row {
  margin: 0;
}

.contact__item label,
.contact__item-label {
  font-size: 12px;
  line-height: 20px;
  color: #5d5d5d;
}

@media screen and (min-width: 768px) {
  .contact__item label,
  .contact__item-label {
    font-size: 14px;
  }
}

.labelText02 {
  font-size: 13px !important;
  color: #333 !important;
  font-weight: 500 !important;
}

.contact__item-label {
  display: inline-block;
}

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

.contact__item > .formTh > .anyText {
  background: #6f6f6f;
  width: 32px;
  border-radius: 2px;
  color: var(--white-color);
  font-size: 12px;
  line-height: 1;
  text-align: center;
  padding: 3px 2px;
  margin-left: 10px;
}

.contact__item > .formTd > input,
.contact__item > .formTd > textarea,
.contact__item > .formTd > div > select {
  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;
  font-size: 12px;
}

@media screen and (min-width: 768px) {
  .contact__item > .formTd > input,
  .contact__item > .formTd > textarea,
  .contact__item > .formTd > div > select {
    font-size: 14px;
    color: #495966;
    font-weight: 500;
  }
}

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

.contact__item > .formTd > div > .select__age {
  width: 120px;
}

.contact__item > .formTd > div > select {
  color: #495966;
  width: 236px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("../images/contact-arrow.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 15px 14px;
  background-size: 12px;
}

.contact__item > .formTd > input::placeholder,
.contact__item > .formTd > textarea::placeholder,
.contact__item > .formTd > div > select::placeholder {
  color: #5a5a5a;
  font-size: 14px;
  font-weight: 400;
}

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

.privacy-policy {
  height: 155px;
  padding: 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: 31px 43px 31px 20px;
  }
}

.privacy-policy__item:nth-last-of-type(2) {
  margin-top: 62px;
}

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

.privacy-policy__item h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #000;
  padding-bottom: 15px;
  border-bottom: 1.5px solid #d0d0d0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.privacy-policy__item h2::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #000;
}

.privacy-policy__item:not(:first-of-type) p {
  margin-top: 41px;
}

.privacy-policy__item-link-text {
  margin-top: 0 !important;
}

.privacy-policy__item p {
  font-size: 14px;
  line-height: 2.2;
  color: #000;
}

.formBtnTd,
.contact__after-button {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.formBtn,
.contact__after-button-text {
  margin: 69px auto 0;
  padding: 18px 0;
  border-radius: 28px;
  border: 1px solid #563892;
  width: 219px;
  background: #563892;
  color: var(--white-color);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.formBtn:hover {
  background: transparent;
  color: #563892;
}

.privacy__wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.privacyLabel {
  color: #424d58;
  line-height: 20px;
  margin-bottom: 1px;
  font-size: 14px;
}

.privacyformError {
  margin-top: -52.5px !important;
  left: auto !important;
  top: auto !important;
}

.order1formError {
  top: 900px !important;
  left: auto !important;
}

@media screen and (min-width: 1000px) {
  .order1formError {
    top: 944px !important;
  }
}

/* orderのチェックボックス */
.checkArea {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}

@media screen and (min-width: 768px) {
  .checkArea {
    grid-template-columns: repeat(2, 1fr);
    gap: 33px;
  }
}

@media screen and (min-width: 1200px) {
  .checkArea {
    grid-template-columns: repeat(3, 1fr);
    gap: 33px;
  }
}

.contact__checkbox-content {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.contact__checkbox-content img {
  border: 1px solid #e2e2e2;
  width: 100px;
  aspect-ratio: 100/100;
  object-fit: cover;
}

.contact__item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #707070;
  outline: none;
  cursor: pointer;
  position: relative;
}

.contact__item input[type="checkbox"]:checked {
  background-color: #563892;
  border-color: #563892;
}

.contact__item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #563892;
}

/* チェックマークとして白い✓を表示 */
.contact__item input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  z-index: 2;
}

.label-time {
  width: 84px;
  color: #413930;
  font-size: 14px;
  font-weight: 400;
}

.formTd-age {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #495966;
}

.d-md-inline-block {
  display: inline-block !important;
}

.formError:not(:has(.formErrorArrow)) {
    position: relative;
}

.formError:not(:has(.formErrorArrow))::after {
    content: "";
    position: absolute;
    top: 94%;
    left: 13px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #ee0101;
    z-index: 996;
}

.formError:not(:has(.formErrorArrow))::before {
    content: "";
    position: absolute;
    top: 94%;
    left: 11px; /* 2px左にずらして境界線を作る */
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #ddd; /* 境界線の色 */
    z-index: 995; /* afterより下に配置 */
}
