@charset "UTF-8";

.p-contactForm {
  max-width: 860px;
  margin-inline: auto;
}

.p-contactForm__list {
  width: 100%;
  padding: 60px 80px;
  box-sizing: border-box;
  border-radius: 20px;
  background: rgba(255, 250, 250, 0.86);
  box-shadow: 0 14px 36px rgba(143, 95, 115, 0.06);
  border: 1px solid rgba(198, 154, 175, 0.22);
}

.p-contactForm__row {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-l);
}

.p-contactForm__term {
  display: flex;
  align-items: center;
  padding-bottom: var(--space-xs);
  font-weight: 700;
  color: var(--color-text, #3f3438);
  line-height: 1.6;
}

.p-contactForm__desc {
  margin-left: 0 !important;
}

.p-contactForm__required,
.p-contactForm__optional {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  padding: 3px 8px;
  border-radius: 50vh;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-left: 10px;
  flex-shrink: 0;
}

.p-contactForm__required {
  color: #fff;
  background: var(--color-cta, #8f5f73);
}

.p-contactForm__optional {
  color: var(--color-cta, #8f5f73);
  background: #f5dae3;
}

/* CF7 basic fields */
.p-contactForm input[type="text"],
.p-contactForm input[type="email"],
.p-contactForm input[type="url"],
.p-contactForm select,
.p-contactForm textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(63, 52, 56, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--color-text, #3f3438);
  font: inherit;
  line-height: 1.7;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.p-contactForm textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(63, 52, 56, 0.25);
  opacity: 1 !important;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(63, 52, 56, 0.25);
  opacity: 1 !important;
}

.wpcf7 input:focus::placeholder,
.wpcf7 textarea:focus::placeholder {
  color: transparent;
}

.p-contactForm select {
  cursor: pointer;
}

.p-contactForm input:focus,
.p-contactForm select:focus,
.p-contactForm textarea:focus {
  outline: none;
  border-color: rgba(143, 95, 115, 0.68);
  box-shadow: 0 0 0 4px rgba(245, 218, 227, 0.72);
  background: #fff;
}

/* checkbox */
.p-contactForm .wpcf7-checkbox {
  display: grid;
  gap: 10px;
}

.wpcf7-list-item {
  display: inline-block;
  width: 31%;
  margin: 0 !important;
}

.p-contactForm .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.7;
}

.p-contactForm input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.35em;
  accent-color: var(--color-cta, #8f5f73);
  flex-shrink: 0;
}

/* 希望日時横並び対応 */
.p-contactForm__dateList {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.p-contactForm__dateItem {
  display: flex;
  align-items: center;
  gap: 8px;
  /* ラベルと入力欄の間 */
  flex: 1 1 280px;
  /* 横幅最小280px、残りで均等拡大 */
  min-width: 200px;
  /* 画面狭いときの崩れ防止 */
}

.p-contactForm__dateLabel {
  width: 65px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.6rem;
  line-height: 1.2;
  flex-shrink: 0;
  font-weight: 700;
}

.p-contactForm__dateItem input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid rgba(63, 52, 56, 0.16);
  border-radius: 14px;
  font: inherit;
  line-height: 1.7;
  background: #fff;
  color: var(--color-text, #3f3438);
}



/* privacy */
.p-contactForm__privacy {
  margin-bottom: var(--space-m);
  text-align: center;
  line-height: 1.8;
}

.p-contactForm__privacy .wpcf7-list-item {
  margin: 0;
}

/* submit */
.p-contactForm__submit {
  text-align: center;
}

input[type="submit"] {
  width: 100%;
  max-width: 480px;
  height: 90px;
  border: none !important;
  padding: 0 !important;
  border-radius: 50vh;
  color: #fff !important;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-cta);
  box-shadow: var(--shadow-cta);
  text-shadow: 0 1px 8px rgba(120, 70, 100, 0.18);
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
}

/* CF7 message */
.p-contactForm .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #b84a62;
  font-size: 14px;
}

.p-contactForm .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  line-height: 1.7;
}

.p-policy__content {
  width: 100%;
  height: 240px;
  overflow-y: scroll;
  padding: var(--space-m);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(63, 52, 56, 0.16);
  border-radius: 8px;
  margin-bottom: var(--space-l);
}

.p-policy__content-title {
  font-size: 1.8rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px !important;
}

.p-policy__list {
  list-style: none;
  padding-left: 0;
}

.article p.p-policy__item-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px !important;
}

.article p.p-policy__text {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs) !important;
}

.p-policy__item-list {
  padding-left: 20px;
  font-size: 1.2rem;
  margin-bottom: var(--space-xs) !important;
}

@media screen and (max-width: 1280px) {
  .wpcf7-list-item {
    display: inline-block;
    width: 48%;
    margin: 0 !important;
  }

  /*---希望日時---*/
  .p-contactForm__dateList {
    flex-direction: column;
  }

  .p-contactForm__dateItem {
    flex: initial;
  }

  .p-contactForm__dateLabel {
    width: 130px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
}

@media screen and (max-width: 834px) {

  .article ul,
  .article ol {
    padding-left: 0 !important;
  }

}

@media screen and (max-width: 787px) {
  .wpcf7-list-item {
    width: 100%;
  }
}


/* SP */
@media screen and (max-width: 680px) {
  .p-contactForm__list {
    width: 100%;
    padding: 40px 20px;
  }

  .p-contactForm input[type="text"],
  .p-contactForm input[type="email"],
  .p-contactForm input[type="url"],
  .p-contactForm select,
  .p-contactForm textarea {
    min-height: 52px;
    border-radius: 12px;
  }

  .p-contactForm textarea {
    min-height: 150px;
  }

  .p-contactForm__privacy {
    padding: 18px 16px;
  }

  input[type="submit"] {
    width: 100%;
    padding-block: 17px;
  }

  .p-policy__content {
    padding: var(--space-m) var(--space-s);
  }
}


@media screen and (max-width: 480px) {
  .p-contactForm__list {
    width: 100%;
    padding: 30px 20px;
    margin-bottom: var(--space-s);
  }

  .p-contactForm__row {
    margin-bottom: var(--space-m);
  }

  .wpcf7-list-item {
    width: 100%;
  }

  .p-contactForm__dateLabel {
    width: 65px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    font-size: 1.4rem;
  }

  .p-contactForm__dateLabel .p-contactForm__required {
    margin-left: 0;
  }


  .p-contactForm__privacy {
    margin-bottom: var(--space-s);
    padding: 0;
  }

  .p-policy__content {
    padding: var(--space-s) var(--space-xs);
  }
}