@charset "utf-8";
.contact {
  background: #f5f5f5;
  padding-block: 100px 154px;
}

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

.contact__container {
  padding: 40px 8%;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

@media screen and (min-width: 768px) {
  .contact__container {
    padding: 60px 8% 100px;
  }
}

.contact__container .container {
  padding-right: 0px;
  padding-left: 0px;
}

.formRow {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.formTh {
  display: flex;
  align-items: center;
  gap: 10px;
}

.label {
  margin-bottom: 0;
}

.labelText01 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: #454545;
}

.requiredText {
  color: var(--color-white);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  border-radius: 2px;
  background: #d80e0e;
  width: 32px;
  height: 18px;
  padding: 2px 4px;
}

.anyText {
  color: var(--color-white);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  border-radius: 2px;
  background: #5a5a5a;
  width: 32px;
  height: 18px;
  padding: 2px 4px;
}

.formTd {
  max-width: 100% !important;
}

.formInput {
  padding: 15px 14px;
  max-width: 100%;
  width: 100%;
  border-radius: 3px;
  background: #f7f7f7;
  border: 1px solid #d3d3d3;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.formInput::placeholder,
.formTextArea::placeholder {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: #555555;
}

/* 通常の入力フィールドのフォーカススタイル */
.formInput:focus-visible,
.formInput:focus,
.formInput:active,
.textarea:focus-visible,
.textarea:focus,
.textarea:active {
  border: 2px solid var(--color-text) !important; /* デバッグ用に青色と太さを変更 */
  outline: none;
  background: #f7f7f7;
}

/* selectタグ専用のフォーカススタイル */
select:focus-visible,
select:focus,
select:active {
  border: 2px solid var(--color-text);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* 背景画像を維持 */
  background: #f7f7f7 url(../images/contact-select.svg) no-repeat right 10px
    center;
  background-size: 12px 8px;
}

.textarea {
  max-width: 100%;
  min-height: 197px;
  width: 100%;
  padding: 21px 14px;
  border-radius: 3px;
  background: #f7f7f7;
  border: 1px solid #d3d3d3;
}

.contact__privacy-check {
  margin-top: -20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.privacyLabel {
  font-size: 14px;
  font-weight: 400;
  color: #454545;
}

.contact__privacy-wrapper {
  margin-top: 39px;
  width: 100%;
  height: 155px;
  overflow-y: scroll;
  padding: 40px 20px 25px 20px;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  background: #f7f7f7;
}

@media screen and (min-width: 768px) {
  .contact__privacy-wrapper {
    padding: 40px 56px 25px 31px;
  }
}

.contact__privacy-text,
.contact__privacy-wrapper p,
.contact__privacy-wrapper a {
  font-size: 12px;
  font-weight: 400;
  line-height: calc(30 / 14);
  color: #464646;
  min-height: 0;
}

@media screen and (min-width: 768px) {
  .contact__privacy-text,
  .contact__privacy-wrapper p,
  .contact__privacy-wrapper a {
    font-size: 14px;
  }
}

.contact__privacy-text:not(:first-child) {
  margin-top: 41px;
}

.contact__privacy-box {
  margin-top: 62px;
}

.contact__privacy-title {
  color: #464646;
  margin-bottom: 41px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: 1.2;
  padding-bottom: 15px;
  border-bottom: 1.5px solid #d0d0d0;
  display: flex;
  align-items: center;
  gap: 16px;
}

@media screen and (min-width: 768px) {
  .contact__privacy-title {
    gap: 35px;
    font-size: 18px;
  }
}

.contact__privacy-title::before {
  content: "";
  width: 16px;
  height: 13px;
  background: #272727;
  border-radius: 4px;
  flex-shrink: 0;
}

.contact__privacy-link-wrapper {
  display: flex;
  align-items: center;
}

.formBtn {
  text-align: center;
  margin-inline: auto;
  display: block;
  margin-top: 29px;
  color: var(--color-white);
  padding: 14px 62px;
  background: #505050;
  border-radius: 28px;
  font-size: 14px;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: 1;
  transition: all 0.3s ease;
  border: 1px solid #505050;
}

.formBtn:hover {
  background: var(--color-white);
  color: #505050;
}

/* form complete */
.contact__formcomplete-text {
  line-height: 1.6;
}

.contact__formcomplete-button {
  text-align: center;
  margin-top: 60px;
  margin-inline: auto;
}

.contact__formcomplete-button-link p {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: 1;
  padding: 18px 73px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 28px;
  background: #505050;
  color: var(--color-white);
  border: 1px solid #505050;
  transition: all 0.3s ease;
}

.contact__formcomplete-button-link:hover p {
  background: var(--color-white);
  color: #505050 !important;
}

select {
  padding: 15px 14px;
  border-radius: 3px;
  border: 1px solid #d3d3d3;
  min-height: 50px;
  min-width: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: #555555;
  appearance: none; /* 標準 */
  -webkit-appearance: none; /* Safari/Chrome */
  -moz-appearance: none; /* Firefox */
  background: #f7f7f7 url(../images/contact-select.svg) no-repeat right 10px
    center;
  background-size: 12px 8px;
  padding-right: 35px;
}
