/* フォームページ関連スタイル */
.wpcf7-not-valid-tip {
  position: absolute;
  font-size: 11px;
}
.page-section .wpcf7-not-valid-tip {
  position: relative;
  font-size: 14px;
  margin-top: 4px;
}

.form-catch {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  margin-top: 22px;
}

.form-subcatch {
  text-align: center;
  font-weight: 400;
  line-height: 1.875;
  margin-top: 22px;
}

/* フォーム */
.page-section form {
  max-width: 500px;
  margin: 40px auto 0;
}

.form-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.form-group.textarea {
  align-items: flex-start;
}

.form-group + .form-group {
  margin-top: 12px;
}

.input-container,
.textarea-container {
  flex: 1;
}

.form-label {
  min-width: 140px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}
.form-group.textarea .form-label {
  margin-top: 8px;
}

.input-container,
.textarea-container {
  position: relative;
}

.input-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  max-height: 42px;
  background: var(--season-color);
  z-index: 2;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 18px;
  border: 1px solid #000;
  font-size: 14px;
  background: white;
  font-family: inherit;
  border-radius: 0;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-section .agreement-text {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  line-height: 1.875;
  margin-top: 38px;
}

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

.checkbox-label {
  font-size: 20px;
  color: #000;
}

.form-actions {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .form-group {
    flex-direction: column;
    gap: 4px;
  }
  .form-group.textarea {
    align-items: center;
  }
  .form-group + .form-group {
    margin-top: 20px;
  }
  .form-label {
    font-size: 14px;
    text-align: center;
  }
  .form-group.textarea .form-label {
    margin-top: 0;
  }
  .input-container,
  .textarea-container {
    width: 100%;
  }
  .page-section .agreement-text {
    margin-top: 20px;
    font-size: 14px;
  }
  .checkbox-label {
    font-size: 16px;
  }
}

/* トップページへボタン */
.top-page-btn-container {
  text-align: center;
  padding: 0 40px 40px;
}

.top-page-btn {
  background: var(--season-color);
  color: white;
  text-decoration: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 4px;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.top-page-btn:hover {
  opacity: 0.7;
}

/* サイドバー */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 320px;
  margin-top: 245px;
}

/* 確認ページ */
.confirm-content {
  width: 100%;
  max-width: 417px;
  margin: 30px auto 0;
}

.confirm-field {
  border-bottom: 1px solid #000;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 10px 0;
}

.confirm-field:first-child {
  border-top: 1px solid #000;
}

.confirm-label {
  min-width: 100px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.confirm-value {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.confirm-value p {
  height: fit-content;
  white-space: pre-wrap; /* 改行(\n)を反映、長文は折り返し */
  word-break: break-word; /* 日本語の長文対策 */
}

.confirm-note {
  margin: 36px auto 0;
  width: 100%;
  max-width: 550px;
  font-weight: 500;
  line-height: 1.875;
  color: #000;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 42px;
}

.submit-btn.confirm {
  margin: 0;
  width: 190px;
  height: 45px;
}

.submit-btn.confirm.back {
  background: #fff;
  border: 1px solid #000;
}

.submit-btn.confirm.back .submit-btn-arrow {
  position: absolute;
  left: 16px;
  transform: rotate(180deg) translateY(45%);
}

@media (max-width: 768px) {
  .confirm-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .confirm-label {
    width: 100%;
    font-weight: 700;
  }
  .confirm-note {
    font-size: 14px;
  }
  .confirm-actions {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* サンクスページ */
.thanks-section {
  position: relative;
  width: 759px;
  padding: 60px 50px;
}

.thanks-subtitle {
  margin-top: 28px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.13;
  color: #000;
  text-align: center;
}

.thanks-message {
  margin-top: 30px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.66;
  color: #000;
  text-align: center;
}

.thanks-description {
  margin: 36px auto 0;
  max-width: 550px;
  color: #000;
  line-height: 1.6;
  font-weight: 500;
}
