/* テーマのフォームデザインに選択式項目を自然に合わせます。 */
.contact-form .form-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bbb;
  border-radius: 0;
  padding: 8px 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.contact-form .form-row input::placeholder,
.contact-form .form-row textarea::placeholder { color: #999; }

/* 同意チェック：行全体を label にせず、チェック欄と「に同意する」だけを操作対象にする。 */
.contact-form .agree {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  gap: 8px;
  text-align: left;
}
.contact-form .agree > input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}
.contact-form .agree-copy {
  display: inline;
  line-height: 1.8;
}
.contact-form .agree-copy label {
  display: inline;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* 送信完了専用ページ：既存のヘッダー・波・フッターと一体化する。 */
body.ybce-thanks-page .ybce-thanks-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(340px, 52vh, 510px);
  padding: clamp(90px, 10vw, 145px) 24px;
  background: #fff;
}
.ybce-thanks-inner {
  width: 100%;
  text-align: center;
}
.ybce-thanks-message {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 2;
  color: var(--ink, #242b2b);
}
.ybce-thanks-button {
  display: inline-block;
  margin-top: clamp(32px, 5vw, 55px);
  min-width: 215px;
  padding: 13px 32px;
  text-decoration: none;
  transition: opacity .2s ease;
}
.ybce-thanks-button:hover,
.ybce-thanks-button:focus-visible {
  opacity: .78;
}
@media (max-width: 767px) {
  body.ybce-thanks-page .ybce-thanks-content {
    min-height: 350px;
    padding: 80px 20px 100px;
  }
  .ybce-thanks-message {
    font-size: 17px;
    letter-spacing: .04em;
  }
}
