@charset "UTF-8";

.contact {
  padding: 30px 0 80px;
}

.contact-head {
  width: calc(100% - 40px);
  margin: 0 auto 60px;
}

.breadcrumb {
  display: none;
}

.contact-label {
  padding: 0 8px 14px;
  border-bottom: 1px solid #cfc4bb;
}

.contact-title {
  margin-top: 36px;
  color: #5b534d;
  font-size: var(--main-heading);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-align: center;
}

.contact-lead {
  max-width: 600px;
  margin-top: 28px;
  margin-right: auto;
  margin-left: auto;
  font-size: var(--main-text);
  line-height: 1.8;
  text-align: center;
}

.contact-body {
  width: calc(100% - 24px);
  margin: 40px auto 0;
}

.contact-guide-img {
  width: 100%;
  aspect-ratio: 500 / 375;
  object-fit: cover;
}

.contact-guide-heading {
  margin: 28px 0 0;
  color: #c96e86;
  font-family: "Noto Serif JP", serif;
  font-size: var(--middle-heading);
  font-weight: 500;
  line-height: 1.5;
}

.contact-guide-question {
  margin-top: 14px;
  font-size: var(--sub-heading);
  line-height: 1.6;
}

.contact-guide-text {
  margin-top: 22px;
  font-size: var(--main-text);
  line-height: 1.85;
}

.contact-guide-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}

.contact-circles {
  display: none;
}

.contact-form {
  margin-top: 56px;
}

.contact-form-card {
  padding: 24px 21px 34px;
  border: 1px solid #cfc4bb;
  background-color: #fffdfb;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.contact-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.contact-form-heading {
  display: block;
  padding: 0;
  color: #c96e86;
  font-size: var(--main-text);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-radio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.contact-radio {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.contact-radio-input {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #5b534d;
  border-radius: 50%;
  background-color: #fff;
  appearance: none;
  cursor: pointer;
}

.contact-radio-input:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #c96e86;
  transform: translate(-50%, -50%);
}

.contact-radio-text {
  font-size: var(--main-text);
  letter-spacing: 0.05em;
}

.contact-sub {
  display: none;
  margin: 12px 0 8px 30px;
  padding: 14px 16px;
  border-left: 2px solid #e5d3d6;
  background-color: #fff;
}

.contact-radio-list > li:has(> .contact-radio .contact-radio-input:checked) > .contact-sub {
  display: block;
}

.contact-sub-label {
  display: block;
  color: #5b534d;
  font-size: var(--main-text);
  font-weight: 500;
}

.contact-sub-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.contact-sub .contact-sub-textarea {
  height: 100px;
  min-height: 0;
  margin-top: 10px;
}

.contact-input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #9c918a;
  border-radius: 0;
  background-color: #fff;
  color: #5b534d;
  font-family: inherit;
  font-size: var(--main-text);
}

.contact-input:focus {
  border-color: #c96e86;
  outline: 2px solid rgba(201, 110, 134, 0.25);
  outline-offset: 0;
}

.contact-textarea {
  height: 280px;
  padding: 12px 14px;
  line-height: 1.7;
  resize: vertical;
}

.contact-input::placeholder {
  color: #c7c0bb;
}

.contact-field {
  margin-top: 22px;
}

.contact-field-nursery {
  margin-top: 24px;
}

.contact-select {
  position: relative;
  margin-top: 12px;
}

.contact-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #5b534d;
  border-bottom: 1.5px solid #5b534d;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact-select-input {
  margin-top: 0;
  padding-right: 44px;
  appearance: none;
  cursor: pointer;
}

.contact-divider {
  margin: 28px 0 0;
  border: none;
  border-top: 2px dotted #8a7f78;
}

.contact-field-label {
  display: block;
  font-size: var(--main-text);
  letter-spacing: 0.1em;
}

.contact-required {
  margin-left: 6px;
  color: #c96e86;
}

.contact-field-row {
  display: flex;
  gap: 18px;
}

.contact-field-age {
  flex: 0 0 auto;
}

.contact-age {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.contact-age .contact-input {
  width: 84px;
  padding: 0 10px;
}

.contact-age-unit {
  font-size: var(--main-text);
  line-height: 1;
}

.contact-field-license {
  flex: 1;
}

.contact-field-message {
  margin-top: 40px;
}

.contact-field-note {
  letter-spacing: 0.05em;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-error-box {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #c13d4f;
  background-color: #fff;
  color: #c13d4f;
  font-size: calc(var(--main-text) * 0.875);
  line-height: 1.7;
}

.contact-error-box-title {
  font-size: var(--main-text);
  font-weight: 700;
}

.contact-error-box-list {
  margin-top: 6px;
  padding-left: 1.2em;
}

.contact-error-box-list li {
  list-style-type: disc;
}

.contact-error-text {
  margin-top: 6px;
  color: #c13d4f;
  font-size: calc(var(--main-text) * 0.875);
  line-height: 1.6;
}

.contact-submit .contact-error-text {
  text-align: center;
}

.contact-input[aria-invalid="true"] {
  border-color: #c13d4f;
  background-color: #fff7f8;
}

.contact-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 24px);
  margin: 44px auto 0;
}

.contact-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  cursor: pointer;
}

.contact-agree-input {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid #b9aea6;
  border-radius: 4px;
  background-color: #fff;
  appearance: none;
  cursor: pointer;
}

.contact-agree-input:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #c96e86;
  border-bottom: 2px solid #c96e86;
  transform: rotate(45deg);
}

.contact-agree-text {
  font-size: calc(var(--main-text) * 0.875);
  line-height: 24px;
  letter-spacing: 0.05em;
}

.contact-agree-link {
  color: #c96e86;
  text-decoration: underline;
}

.contact-step-lead {
  text-align: center;
}

.contact-step-box {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.contact-confirm-list {
  margin: 0;
}

.contact-confirm-row {
  padding: 14px 0;
  border-bottom: 1px solid #e3dad3;
}

.contact-confirm-label {
  color: #c96e86;
  font-size: calc(var(--main-text) * 0.875);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.contact-confirm-value {
  margin: 4px 0 0;
  font-size: var(--main-text);
  line-height: 1.8;
  word-break: break-all;
}

.contact-confirm-value.is-empty {
  color: #a7a29e;
}

.contact-confirm-btns {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
}

.contact-agree-link:hover {
  text-decoration: none;
}

.contact-confirm-btns .contact-submit-btn {
  margin-top: 0;
}

.contact-back-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 264px;
  height: 54px;
  border: 1px solid #b9aea6;
  background-color: #fff;
  color: #5b534d;
  font-size: var(--main-text);
  letter-spacing: 0.1em;
  transition: background-color 0.3s;
}

.contact-send-btn {
  border-color: #c96e86;
  background-color: #c96e86;
  color: #fff;
  font-weight: 700;
}

.contact-confirm-row:first-child {
  padding-top: 0;
}

.contact-confirm-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.contact-thanks {
  text-align: center;
}

.contact-thanks-heading {
  color: #c96e86;
  font-family: "Noto Serif JP", serif;
  font-size: var(--middle-heading);
  font-weight: 700;
  line-height: 1.6;
}

.contact-thanks-text {
  margin-top: 20px;
  line-height: 1.9;
  text-align: left;
}

.contact-thanks-note {
  margin-top: 16px;
  font-size: calc(var(--main-text) * 0.875);
  line-height: 1.7;
  text-align: left;
}

.contact-thanks-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.contact-back-btn:hover {
  background-color: #f3eeea;
}

.contact-send-btn:hover {
  border-color: #b65a73;
  background-color: #b65a73;
}

.contact-submit-btn {
  width: 264px;
  height: 54px;
  margin-top: 26px;
  border: 1px solid #b9aea6;
  background-color: #fff6f3;
  color: #5b534d;
  font-family: inherit;
  font-size: var(--main-text);
  letter-spacing: 0.1em;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.contact-submit-btn:hover {
  background-color: #fff;
}

.contact-submit-btn:disabled {
  border-color: #d3cfcc;
  background-color: #e8e6e4;
  color: #a7a29e;
  box-shadow: none;
  cursor: not-allowed;
}

.contact-submit-btn:disabled:hover {
  background-color: #e8e6e4;
}

@media screen and (min-width: 1024px) {

  .contact {
    padding: 0 0 120px;
  }

  .contact-head {
    max-width: 1180px;
  }

  .breadcrumb {
    display: block;
    margin: 0 auto;
    padding: 10px 0 55px 0;
  }

  .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    font-size: var(--breadcrumb-text);
    list-style: none;
  }

  .breadcrumb-link {
    color: #5b534d;
  }

  .breadcrumb-link:hover {
    text-decoration: underline;
  }

  .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    margin: 0 10px;
  }

  .contact-label {
    padding: 0 0 16px;
  }

  .contact-title {
    margin-top: 100px;
  }

  .contact-lead {
    max-width: 842px;
    margin: 30px auto 0;
    line-height: 1.6;
  }

  .contact-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 1292px;
    margin: 96px auto 0;
    width: calc(100% - 40px);
  }

  .contact-guide {
    flex: 0 1 510px;
  }

  .contact-guide-heading {
    margin-top: 30px;
    white-space: nowrap;
  }

  .contact-guide-question {
    margin-top: 22px;
  }

  .contact-guide-text {
    margin-top: 26px;
  }

  .contact-guide-btns {
    margin-top: 72px;
  }

  .contact-circles {
    position: relative;
    display: block;
    width: 230px;
    height: 180px;
    margin-top: 64px;
  }

  .contact-circle {
    position: absolute;
    border-radius: 50%;
  }

  .contact-circle-pink {
    top: 0;
    left: 80px;
    width: 148px;
    height: 148px;
    background-color: #c96e86;
  }

  .contact-circle-line {
    top: 36px;
    left: 0;
    width: 140px;
    height: 140px;
    border: 4px solid #c9a890;
  }

  .contact-form {
    flex: 0 1 619px;
    margin-top: 0;
  }

  .contact-form-card {
    padding: 58px 40px 60px;
  }

  .contact-textarea {
    height: 292px;
  }

  .contact-sub .contact-sub-textarea {
    height: 100px;
  }

  .contact-field-row {
    gap: 36px;
  }

  .contact-age .contact-input {
    width: 140px;
  }

  .contact-field-message {
    margin-top: 44px;
  }

  .contact-submit {
    margin-top: 88px;
    width: calc(100% - 40px);
  }

  .contact-agree {
    gap: 14px;
  }

  .contact-step .contact-head {
    margin-bottom: 64px;
  }

  .contact-step .contact-title {
    margin-top: 72px;
  }

  .contact-confirm-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    column-gap: 24px;
    padding: 18px 0;
  }

  .contact-confirm-label {
    padding-top: 3px;
  }

  .contact-confirm-value {
    margin-top: 0;
  }

  .contact-confirm-btns {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-top: 64px;
  }

  .contact-back-btn {
    width: 276px;
    height: 60px;
  }

  .contact-thanks-text,
  .contact-thanks-note {
    text-align: center;
  }

  .contact-thanks-btns {
    flex-direction: row;
    justify-content: center;
    gap: 80px;
    margin-top: 64px;
  }

  .contact-confirm-row:first-child {
    padding-top: 0;
  }

  .contact-confirm-row:last-child {
    padding-bottom: 0;
  }

  .contact-submit-btn {
    width: 276px;
    height: 60px;
    margin-top: 28px;
  }

}
