@charset "utf-8";

/*================================================================
# contact
================================================================ */
.contact .contact__lead {
  text-align: center;
}

.contact .contact__lead p {
  font-size: 14px;
  line-height: 2;
}

.contact .contact__lead p + p {
  margin-top: 16px;
}

.contact .red,
.contact .optional {
  margin-left: 8px;
  padding: 4px 8px;
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  vertical-align: middle;
}

.contact .red {
  background: var(--primary);
  color: var(--white);
}

.contact .optional {
  background: var(--gray03);
  color: var(--gray01);
}

/* form
------------------------------------------------------ */
.contact .contact-form {
  margin-top: 64px;
}

.contact .contact-form__list {
  border-top: 1px solid var(--gray03);
}

.contact .contact-form__row {
  padding: 32px 40px;
  border-bottom: 1px solid var(--gray03);
  display: grid;
  align-items: center;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
}

.contact .contact-form__row--textarea {
  align-items: flex-start;
}

.contact .contact-form__label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.contact .contact-form__field input[type="text"],
.contact .contact-form__field input[type="tel"],
.contact .contact-form__field input[type="email"],
.contact .contact-form__field textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border03);
  border-radius: 0;
  background: var(--bg02);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact .contact-form__field textarea {
  min-height: 240px;
  resize: vertical;
}

.contact .contact-form__field input:focus,
.contact .contact-form__field textarea:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(9, 80, 210, 0.08);
}

/* radio
------------------------------------------------------ */
.contact .contact-form__radio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.contact .radio {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}

.contact .radio input {
  margin: 0 6px 0 0;
}

.contact .radio span {
  font-size: 14px;
  line-height: 1.8;
}

/* privacy
------------------------------------------------------ */
.contact .contact-form__privacy {
  margin-top: 80px;
}

.contact .contact-form__privacy h2 {
  font-family: var(--text-mincho);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.05em;
}

.contact .contact-form__privacy h2::after {
  width: 48px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--primary);
  content: "";
  display: block;
}

.contact .contact-form__privacy-box {
  height: 320px;
  margin-top: 40px;
  padding: 32px 40px;
  border: 1px solid var(--border03);
  background: var(--bg02);
  overflow-y: auto;
}

.contact .privacy-box .text,
.contact .privacy-box .unit__text {
  font-size: 13px;
  line-height: 2;
}

.contact .privacy-box .unit {
  margin-top: 32px;
}

.contact .privacy-box .unit__title {
  font-family: var(--text-mincho);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--primary);
}

.contact .privacy-box .unit__text {
  margin-top: 8px;
}

.contact .privacy-box .unit__text ul {
  margin-top: 8px;
}

.contact .privacy-box .unit__text li {
  padding-left: 16px;
  position: relative;
}

.contact .privacy-box .unit__text li::before {
  width: 5px;
  height: 5px;
  background: var(--primary);
  position: absolute;
  content: "";
  top: 0.9em;
  left: 0;
  transform: translateY(-50%);
}

.contact .contact-form__agree {
  margin-top: 32px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact .contact-form__agree input {
  margin: 0 4px 0 0;
}

.contact .contact-form__agree span {
  font-size: 14px;
  line-height: 1.8;
}

/* submit
------------------------------------------------------ */
.contact .contact-form__submit {
  margin-top: 48px;
  text-align: center;
}

.contact .contact-form__submit button {
  width: 320px;
  height: 72px;
  padding: 0 0 2px;
  cursor: pointer;
  border: 1px solid var(--primary);
  background: var(--primary);
  position: relative;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.08em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact .contact-form__submit button::after {
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  position: absolute;
  content: "";
  top: 50%;
  right: 28px;
  transform: translateY(-50%) rotate(45deg);
}

@media (hover: hover) {
  .contact .contact-form__submit button:hover {
    background: var(--white);
    color: var(--primary);
  }
}
