@charset "UTF-8";
/* Contact Page CSS */

/* ============================================
   ページ全体レイアウト
   ============================================ */
.contact-page {
  padding: 12em 3em 10em;
  background: #fff;
  min-height: 100vh;
}

.contact-container {
  max-width: 57.5em;
  margin: 0 auto;
  padding: 0 2.5em;
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}

/* ============================================
   ページタイトル
   ============================================ */
.contact-heading {
  display: flex;
  flex-direction: column;
  gap: 0.625em;
}

.contact-heading__en {
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-weight: 500;
  font-size: 1.5em;
  color: var(--highlight-red);
  line-height: 1;
  letter-spacing: 0.05em;
}

.contact-heading__ja {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 2.25em;
  color: #565656;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin: 0;
}

/* ============================================
   青空キッチン体験ボックス
   ============================================ */
.contact-trial-box {
  background: #fbf7f5;
  border-radius: 1.5em;
  padding: 2.5em 3em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.contact-trial-box__text {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1.125em;
  color: #565656;
  line-height: 1.8;
  letter-spacing: 0.2em;
  margin: 0;
}

.contact-trial-box__buttons {
  display: flex;
  gap: 1.5em;
  align-items: center;
  flex-wrap: wrap;
}

/* 体験ボタン */
.contact-trial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  border: 1px solid var(--highlight-red);
  border-radius: 3em;
  padding: 0 1.75em 0 3em;
  height: 5em;
  min-width: 18.75em;
  flex: 1;
  max-width: 24.625em;
  text-decoration: none;
  background: #fff;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  position: relative;
}

.contact-trial-btn:hover {
  background: var(--highlight-red);
}

.contact-trial-btn:hover .contact-trial-btn__text {
  color: #fff;
}

.contact-trial-btn:hover .contact-trial-btn__arrow {
  background: #fff;
}

.contact-trial-btn:hover .contact-trial-btn__arrow svg {
  fill: var(--highlight-red);
}

.contact-trial-btn__text {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1em;
  color: #565656;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-align: center;
  flex: 1;
}

.contact-trial-btn__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25em;
  height: 2.25em;
  background: var(--highlight-red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   説明テキスト
   ============================================ */
.contact-intro {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1em;
  color: #565656;
  line-height: 2;
  letter-spacing: 0.2em;
  margin: 0;
}

/* ============================================
   Contact Form 7 カスタムスタイル
   ============================================ */
.contact-form-wrap {
  display: flex;
  flex-direction: column;
}

/* フォーム全体 */
.contact-form-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

/* フィールドグループ共通 */
.cf7-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* ラベル行 */
.cf7-label-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.cf7-label-row label {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-size: 1em;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

/* 必須バッジ */
.cf7-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4e4e4e;
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-size: 0.625em;
  line-height: 1;
  padding: 0.1875em 0.375em;
  min-width: 2.25em;
  height: 1em;
  border-radius: 0.125em;
  flex-shrink: 0;
}

/* テキスト・メールインプット */
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"] {
  width: 100%;
  height: 2.875em;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  padding: 0 0.75em;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1em;
  color: #333;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus {
  border-color: var(--highlight-red);
}

/* wpcf7-form-control-wrapの幅を揃える */
.contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* チェックボックス */
.cf7-field-group--checkbox .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.375em;
}

.cf7-field-group--checkbox .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin: 0;
}

.cf7-field-group--checkbox .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  cursor: pointer;
}

.cf7-field-group--checkbox .wpcf7-list-item input[type="checkbox"] {
  width: 1.375em;
  height: 1.375em;
  min-width: 1.375em;
  min-height: 1.375em;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  margin: 0.0625em 0 0 0;
  cursor: pointer;
  accent-color: var(--highlight-red);
  flex-shrink: 0;
}

.cf7-field-group--checkbox .wpcf7-list-item-label {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-size: 1em;
  color: #333;
  line-height: 1.5;
}

/* テキストエリア */
.contact-form-wrap textarea {
  width: 100%;
  height: 15em;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  padding: 0.75em;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1em;
  color: #333;
  box-sizing: border-box;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form-wrap textarea:focus {
  border-color: var(--highlight-red);
}

/* プライバシーポリシー同意行 */
.cf7-acceptance-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf7-acceptance-row .wpcf7-acceptance {
  display: flex;
  align-items: center;
}

.cf7-acceptance-row .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 0.625em;
  margin: 0;
}

.cf7-acceptance-row .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.625em;
  cursor: pointer;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 0.9375em;
  color: #333;
}

.cf7-acceptance-row .wpcf7-list-item input[type="checkbox"] {
  width: 0.9375em;
  height: 0.9375em;
  min-width: 0.9375em;
  border: 1px solid #ddd;
  background: #fff;
  margin: 0;
  cursor: pointer;
  accent-color: var(--highlight-red);
  flex-shrink: 0;
}

.cf7-acceptance-row .wpcf7-list-item-label a {
  color: #4e4e4e;
  text-decoration: underline;
}

/* 送信ボタン */
.cf7-submit-wrap {
  display: flex;
  justify-content: center;
}

.contact-form-wrap .wpcf7-submit {
  display: block;
  background: var(--highlight-red);
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1em;
  border: none;
  border-radius: 2.25em;
  padding: 1em 3em;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  min-width: 11.25em;
  text-align: center;
  margin: 0 auto;
}

.contact-form-wrap .wpcf7-submit:hover {
  opacity: 0.85;
}

/* CF7 エラーメッセージ */
.contact-form-wrap .wpcf7-not-valid-tip {
  font-size: 0.8125em;
  color: var(--highlight-red);
  margin-top: 0.25em;
  display: block;
}

.contact-form-wrap .wpcf7-response-output {
  margin-top: 0.5em;
  padding: 0.75em 1em;
  font-size: 0.875em;
  border-radius: 0.25em;
  text-align: center;
}

/* ============================================
   送信完了ページ
   ============================================ */
.contact-page--thanks .contact-container {
  gap: 3em;
}

.contact-thanks-text {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1.125em;
  color: #565656;
  line-height: 2;
  letter-spacing: 0.2em;
}

.contact-thanks-text p {
  margin: 0;
}

.contact-back-wrap {
  display: flex;
  justify-content: center;
}

.contact-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  border: 1px solid var(--highlight-red);
  border-radius: 3em;
  padding: 0 3em;
  height: 5em;
  width: 24.625em;
  max-width: 100%;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s ease;
}

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

.contact-back-btn__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25em;
  height: 2.25em;
  background: var(--highlight-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-back-btn__text {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 1em;
  color: #565656;
  letter-spacing: 0.2em;
  text-align: center;
  flex: 1;
}

/* ============================================
   レスポンシブ (SP: 768px以下)
   ============================================ */
@media (max-width: 768px) {
  .contact-page {
    padding: 30px 0;
  }

  .contact-container {
    padding: 0 24px;
    gap: 32px;
  }

  /* タイトル */
  .contact-heading__en {
    font-size: 18px;
  }

  .contact-heading__ja {
    font-size: 26px;
  }

  /* 体験ボックス */
  .contact-trial-box {
    padding: 28px 24px;
    gap: 20px;
    border-radius: 16px;
  }

  .contact-trial-box__text {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .contact-trial-box__buttons {
    flex-direction: column;
    gap: 16px;
  }

  .contact-trial-btn {
    width: 100%;
    max-width: 300px;
    min-width: unset;
    padding: 10px 20px 10px 32px;
  }

  .contact-trial-btn__text {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  /* 説明テキスト */
  .contact-intro {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  /* フォーム */
  .contact-form-wrap .wpcf7-form {
    gap: 24px;
  }

  .cf7-label-row label {
    font-size: 15px;
  }

  .contact-form-wrap input[type="text"],
  .contact-form-wrap input[type="email"] {
    font-size: 15px;
    height: 44px;
  }

  .cf7-field-group--checkbox .wpcf7-list-item-label {
    font-size: 15px;
  }

  .contact-form-wrap textarea {
    height: 200px;
    font-size: 15px;
  }

  .cf7-acceptance-row .wpcf7-list-item label {
    font-size: 13px;
  }

  .contact-form-wrap .wpcf7-submit {
    width: 100%;
    max-width: 280px;
    font-size: 15px;
    padding: 16px 32px;
  }

  /* 完了ページ */
  .contact-thanks-text {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .contact-back-btn {
    width: 100%;
    max-width: 320px;
    height: 64px;
    padding: 0 24px;
    gap: 12px;
  }

  .contact-back-btn__text {
    font-size: 14px;
    letter-spacing: 0.1em;
  }
}
